diff options
| author | bd <bdunahu@operationnull.com> | 2026-02-24 23:06:38 -0500 |
|---|---|---|
| committer | bd <bdunahu@operationnull.com> | 2026-02-24 23:06:47 -0500 |
| commit | dce08a0f7210104927f5f145248c8d21c7e2afa8 (patch) | |
| tree | 6f8e661352ec0ae9225b38773d3484c9ac704a04 /src/operationnull/site.scm | |
| parent | 481e502918d59b3ab2a6149cc16aadee2039787f (diff) | |
add the blog back; wawa... :)
Diffstat (limited to 'src/operationnull/site.scm')
| -rw-r--r-- | src/operationnull/site.scm | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/operationnull/site.scm b/src/operationnull/site.scm index 05bb048..80f6447 100644 --- a/src/operationnull/site.scm +++ b/src/operationnull/site.scm @@ -1,15 +1,19 @@ (define-module (operationnull site) #:use-module (haunt builder assets) + #:use-module (haunt builder atom) + #:use-module (haunt builder blog) #:use-module (haunt html) #:use-module (haunt post) #:use-module (haunt reader) - #:use-module (haunt reader skribe) + #:use-module (haunt reader commonmark) #:use-module (haunt site) #:use-module (operationnull pages) #:use-module (operationnull static) #:use-module (operationnull theme) #:export (main-site)) +(define %blog-collection + `(("Recent Posts" "/posts/index.html" ,posts/reverse-chronological))) (define main-site (site #:title "operationnull" @@ -18,10 +22,16 @@ #:build-directory "target" #:default-metadata '((author . "bdunahu")) - #:readers (list skribe-reader) + #:readers (list commonmark-reader) #:builders (list (static-page index-content "index.html" "home") (static-page contact-content "/contact.html" "contact") (static-page e404 "/404.html" "404 Error") (static-page gold-content "/gold.html" "Shape God") (static-page music-content "/music.html" "music I like") - (static-directory "content/assets" "assets")))) + (static-directory "content/assets" "assets") + (blog #:theme main-theme + #:prefix "/posts/" + #:collections %blog-collection) + (atom-feeds-by-tag) + (atom-feed #:file-name "atom.xml" + #:subtitle "Recent Posts")))) |
