diff options
| author | Henry Webster <hwebs@hwebs.info> | 2026-07-20 00:52:08 -0500 |
|---|---|---|
| committer | Henry Webster <hwebs@hwebs.info> | 2026-07-20 00:52:08 -0500 |
| commit | 76015a0f1215090201ff3d1e07a95f036e816b73 (patch) | |
| tree | 4b4682bc58c500154d0db9ed98476f76fb27e38c | |
| parent | 95834660fd0a993f103972ec2214a38443221d79 (diff) | |
add stylesheet
| -rw-r--r-- | haunt.scm | 5 | ||||
| -rw-r--r-- | style.css | 13 | ||||
| -rw-r--r-- | theme.scm | 2 |
3 files changed, 19 insertions, 1 deletions
@@ -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; +} @@ -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 |
