From 76015a0f1215090201ff3d1e07a95f036e816b73 Mon Sep 17 00:00:00 2001 From: Henry Webster Date: Mon, 20 Jul 2026 00:52:08 -0500 Subject: add stylesheet --- haunt.scm | 5 ++++- style.css | 13 +++++++++++++ theme.scm | 2 ++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 style.css diff --git a/haunt.scm b/haunt.scm index 15f5fff..4364b4d 100644 --- a/haunt.scm +++ b/haunt.scm @@ -1,6 +1,7 @@ (use-modules (haunt builder flat-pages) (haunt builder blog) + (haunt artifact) (haunt reader) (haunt reader commonmark) (haunt site) @@ -12,5 +13,7 @@ '((author . "Henry J. Webster") (email . "hwebs@hwebs.info")) #:readers (list commonmark-reader) - #:builders (list (flat-pages #:template flat-page-template))) + #:builders (list (flat-pages #:template flat-page-template) + (lambda (site posts) + (list (verbatim-artifact "style.css" "style.css"))))) diff --git a/style.css b/style.css new file mode 100644 index 0000000..67cfad7 --- /dev/null +++ b/style.css @@ -0,0 +1,13 @@ +html { + font-size: 100%; +} +body { + margin: 0 auto; + padding: 0; + max-width: 720px; + font-family: system-ui, sans-serif; + font-weight: normal; +} +main { + margin: 0 1rem; +} diff --git a/theme.scm b/theme.scm index 94b2800..bb4ba53 100644 --- a/theme.scm +++ b/theme.scm @@ -15,6 +15,8 @@ (meta (@ (charset "utf-8"))) (meta (@ (name "viewport") (content "width=device-width, initial-scale=1.0"))) + (link (@ (rel "stylesheet") + (href "style.css"))) (title ,(string-append title " — " (site-title site)))) (body (main -- cgit v1.3