summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2024-09-24 10:35:07 -0400
committerDavid Thompson <dthompson2@worcester.edu>2024-09-24 10:35:07 -0400
commitb4f7435aab4270ddb7adcb58a7baf75d70132782 (patch)
tree0f3045dfc2b0c77a7563f78c403821f13ae98527 /example
parent1f07b6076ae3e35177f481efdc9107b6d4d0611a (diff)
flat-pages: Add index metadata flag for pretty URLs.
Diffstat (limited to 'example')
-rw-r--r--example/haunt.scm2
-rw-r--r--example/pages/about.md10
2 files changed, 12 insertions, 0 deletions
diff --git a/example/haunt.scm b/example/haunt.scm
index 2527c89..bcb58fd 100644
--- a/example/haunt.scm
+++ b/example/haunt.scm
@@ -2,6 +2,7 @@
(haunt builder blog)
(haunt builder atom)
(haunt builder assets)
+ (haunt builder flat-pages)
(haunt builder rss)
(haunt publisher rsync)
(haunt publisher sourcehut)
@@ -21,6 +22,7 @@
(atom-feed)
(atom-feeds-by-tag)
(rss-feed)
+ (flat-pages)
(static-directory "images"))
#:publishers (list (rsync-publisher #:name 'rsync
#:destination "/tmp/haunt-example")
diff --git a/example/pages/about.md b/example/pages/about.md
new file mode 100644
index 0000000..d841fa7
--- /dev/null
+++ b/example/pages/about.md
@@ -0,0 +1,10 @@
+title: About
+index: true
+---
+Scheme is a cool programming language.
+
+Guile is a cool Scheme implementation.
+
+Haunt is a cool static site generator written in Guile.
+
+Enough said.