From 76b7e6eeaf99e5aeac3d9f651bc548f2c537ce85 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 24 Aug 2023 12:42:22 -0500 Subject: bleh --- lib/config.sld | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'lib/config.sld') diff --git a/lib/config.sld b/lib/config.sld index bdd6ef5..f2c00df 100644 --- a/lib/config.sld +++ b/lib/config.sld @@ -8,12 +8,15 @@ (boudin schmaltz) ;; not portable (chicken pathname) + (chicken time posix) (html-parser) ) (export site-url site-dest page-path-transformers page-text-transformers - page-template index-template feed-template) + page-date-formats + page-template index-template feed-template + build-time) (begin ;; Site information @@ -42,4 +45,13 @@ (make-parameter 'todo)) (define feed-template (make-parameter 'todo)) - )) + ;; Miscellaneous + (define page-date-formats + (make-parameter (list "%Y-%m-%d" + "%Y-%m-%d%n%H:%M" + "%Y-%m-%d%n%I:%M%n%p"))) + ;; Not actually configuration, but state ... meh + (define build-time + (make-parameter + (time->string (seconds->utc-time) "%FT%TZ")))) + ) -- cgit 1.4.1-21-gabe81