From b4f7435aab4270ddb7adcb58a7baf75d70132782 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Tue, 24 Sep 2024 10:35:07 -0400 Subject: flat-pages: Add index metadata flag for pretty URLs. --- example/haunt.scm | 2 ++ example/pages/about.md | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 example/pages/about.md (limited to 'example') 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. -- cgit v1.2.3