From a5399143011d6b8f8b571e164afeded994e44c91 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Thu, 18 Aug 2016 15:20:42 -0400 Subject: example: Add a Markdown post. * example/haunt.scm: Add the commonmark-reader. * example/posts/frob.md: New file. --- example/haunt.scm | 3 ++- example/posts/frob.md | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 example/posts/frob.md diff --git a/example/haunt.scm b/example/haunt.scm index 26d7b9a..7c538bd 100644 --- a/example/haunt.scm +++ b/example/haunt.scm @@ -5,6 +5,7 @@ (haunt reader) (haunt reader skribe) (haunt reader texinfo) + (haunt reader commonmark) (haunt site)) (site #:title "Built with Guile" @@ -12,7 +13,7 @@ #:default-metadata '((author . "Eva Luator") (email . "eva@example.com")) - #:readers (list texinfo-reader skribe-reader sxml-reader html-reader) + #:readers (list commonmark-reader texinfo-reader skribe-reader sxml-reader html-reader) #:builders (list (blog) (atom-feed) (atom-feeds-by-tag) diff --git a/example/posts/frob.md b/example/posts/frob.md new file mode 100644 index 0000000..5504e3f --- /dev/null +++ b/example/posts/frob.md @@ -0,0 +1,20 @@ +title: Hello, Markdown! +date: 2016-08-18 18:00 +tags: frob, markdown +--- + +# This is a Markdown post + +Markdown support is brought to you by +[guile-commonmark](https://github.com/OrangeShark/guile-commonmark)! + +Code snippet: + +```scheme +;; Just gonna snooze for a bit... +((lambda (f) (f f)) (lambda (f) (f f))) +``` + +## Subheading + +You can't be a real static site generator without Markdown support! -- cgit v1.2.3