aboutsummaryrefslogtreecommitdiff
path: root/haunt/jakob/theme.scm
diff options
context:
space:
mode:
authorJakob L. Kreuze2022-08-28 18:31:07 -0400
committerJakob L. Kreuze2022-08-28 18:31:07 -0400
commit2fdf6adbd44d93caeeabf263649a1ee37a93908e (patch)
treebcd62f0c747bba1a9a89b1d264c6a784433de735 /haunt/jakob/theme.scm
parentde727db06bcd673ce4e8c06084a5cf78dcb514a9 (diff)
Some (roughly-implemented) support for custom meta tags, etc
Diffstat (limited to 'haunt/jakob/theme.scm')
-rw-r--r--haunt/jakob/theme.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/haunt/jakob/theme.scm b/haunt/jakob/theme.scm
index b9a2dc5..2d999f1 100644
--- a/haunt/jakob/theme.scm
+++ b/haunt/jakob/theme.scm
@@ -73,6 +73,8 @@ International")
(title '())
(description "")
(keywords '())
+ (meta '())
+ (scripts '())
(content '(div "")))
"Return an SHTML document using the website's theme."
`((doctype "html")
@@ -97,6 +99,11 @@ International")
(meta (@ (name "og:title") (content ,title)))
+ ,@(map (match-lambda
+ ((name . content)
+ `(meta (@ (name ,name) (content ,content)))))
+ meta)
+
,@(map (lambda (file-name) (stylesheet file-name)) %stylesheets)
,@(map (match-lambda
@@ -107,4 +114,5 @@ International")
(body
,%header
,content
+ ,@scripts
,%footer))))

© 2015 - 2026 Jakob L. Kreuze