summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--haunt.scm5
-rw-r--r--style.css13
-rw-r--r--theme.scm2
3 files changed, 19 insertions, 1 deletions
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