From dce08a0f7210104927f5f145248c8d21c7e2afa8 Mon Sep 17 00:00:00 2001 From: bd Date: Tue, 24 Feb 2026 23:06:38 -0500 Subject: add the blog back; wawa... :) --- src/operationnull/site.scm | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'src/operationnull/site.scm') 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")))) -- cgit v1.2.3