summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Webster <hwebs@hwebs.info>2026-07-19 19:51:39 -0500
committerHenry Webster <hwebs@hwebs.info>2026-07-19 19:51:39 -0500
commit95834660fd0a993f103972ec2214a38443221d79 (patch)
tree8f0e8287aa42dfaf09ba4571a98e8582e10776cf
Initial commit of personal site on haunt.
-rw-r--r--haunt.scm16
-rw-r--r--pages/index.md5
-rw-r--r--theme.scm25
3 files changed, 46 insertions, 0 deletions
diff --git a/haunt.scm b/haunt.scm
new file mode 100644
index 0000000..15f5fff
--- /dev/null
+++ b/haunt.scm
@@ -0,0 +1,16 @@
+(use-modules
+ (haunt builder flat-pages)
+ (haunt builder blog)
+ (haunt reader)
+ (haunt reader commonmark)
+ (haunt site)
+ (theme))
+
+(site #:title "hwebs"
+ #:domain "hwebs.info"
+ #:default-metadata
+ '((author . "Henry J. Webster")
+ (email . "hwebs@hwebs.info"))
+ #:readers (list commonmark-reader)
+ #:builders (list (flat-pages #:template flat-page-template)))
+
diff --git a/pages/index.md b/pages/index.md
new file mode 100644
index 0000000..fa9c7a9
--- /dev/null
+++ b/pages/index.md
@@ -0,0 +1,5 @@
+title: About Me
+---
+My name is Henry J. Webster.
+
+I work in technology and live in the great American city. I'm an avid do-it-yourself-er and aspiring "hacker with a beautiful yet whimsical technique." \ No newline at end of file
diff --git a/theme.scm b/theme.scm
new file mode 100644
index 0000000..94b2800
--- /dev/null
+++ b/theme.scm
@@ -0,0 +1,25 @@
+(define-module (theme)
+ #:use-module (haunt html)
+ #:use-module (haunt site)
+ #:use-module (haunt builder blog)
+ #:export (hwebs-theme
+ flat-page-template))
+
+(define hwebs-theme
+ (theme #:name "hwebs"
+ #:layout
+ (lambda (site title body)
+ `((doctype "html")
+ (html
+ (head
+ (meta (@ (charset "utf-8")))
+ (meta (@ (name "viewport")
+ (content "width=device-width, initial-scale=1.0")))
+ (title ,(string-append title " — " (site-title site))))
+ (body
+ (main
+ (article (h1 ,title)
+ ,body))))))))
+
+(define (flat-page-template site metadata body)
+ ((theme-layout hwebs-theme) site (assq-ref metadata 'title) body))