example: Add a Markdown post.

* example/haunt.scm: Add the commonmark-reader.
* example/posts/frob.md: New file.
This commit is contained in:
David Thompson 2016-08-18 15:20:42 -04:00
parent 3feed55361
commit a539914301
2 changed files with 22 additions and 1 deletions

View File

@ -5,6 +5,7 @@
(haunt reader) (haunt reader)
(haunt reader skribe) (haunt reader skribe)
(haunt reader texinfo) (haunt reader texinfo)
(haunt reader commonmark)
(haunt site)) (haunt site))
(site #:title "Built with Guile" (site #:title "Built with Guile"
@ -12,7 +13,7 @@
#:default-metadata #:default-metadata
'((author . "Eva Luator") '((author . "Eva Luator")
(email . "eva@example.com")) (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) #:builders (list (blog)
(atom-feed) (atom-feed)
(atom-feeds-by-tag) (atom-feeds-by-tag)

20
example/posts/frob.md Normal file
View File

@ -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!