summaryrefslogtreecommitdiff
path: root/builder/base.scm
diff options
context:
space:
mode:
Diffstat (limited to 'builder/base.scm')
-rw-r--r--builder/base.scm7
1 files changed, 6 insertions, 1 deletions
diff --git a/builder/base.scm b/builder/base.scm
index 17b7967..31cbf2d 100644
--- a/builder/base.scm
+++ b/builder/base.scm
@@ -2,6 +2,7 @@
#:use-module (haunt site)
#:use-module (builder components)
#:use-module (builder includes)
+ #:use-module (srfi srfi-19)
#:use-module (json)
#:export (base-template
contained-template
@@ -69,7 +70,11 @@
(assq-ref metadata 'title)
`(div (@ (class "container wider"))
(main (@ (class "page prose")) `
- ,,body)
+ ,,body
+ ,(let ((lastmod (assq-ref metadata 'lastmod)))
+ (when lastmod
+ `(p (@ (class "prose-container small"))
+ "Last modified: " ,(date->string lastmod "~Y-~m-~d ~H:~M")))))
(footer (@ (style "margin: 2rem 0"))
,(navigation)))))