summaryrefslogtreecommitdiff
path: root/haunt/builder/atom.scm
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2015-04-13 19:40:55 -0400
committerDavid Thompson <dthompson2@worcester.edu>2015-04-13 19:43:35 -0400
commit3592829387367d54dcc4dc1c5cd4862586cc705d (patch)
treec4768e66eed08ce9aef17f3aa68adf4ce18fab43 /haunt/builder/atom.scm
parent3614b3e9b91c17773af75832f8fbafc24d105898 (diff)
post: Add post-date procedure.
* haunt/post.scm (%default-date): New variable. (post-date): New procedure. * haunt/builder/atom.scm (post->atom-entry): Use post-date. * README.md (Example Configuration): Remove date from default metadata.
Diffstat (limited to 'haunt/builder/atom.scm')
-rw-r--r--haunt/builder/atom.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/haunt/builder/atom.scm b/haunt/builder/atom.scm
index 337de6d..1cfe1e3 100644
--- a/haunt/builder/atom.scm
+++ b/haunt/builder/atom.scm
@@ -51,7 +51,7 @@
(name ,(post-ref post 'author))
,(let ((email (post-ref post 'email)))
(if email `(email ,email) '())))
- (updated ,(date->string* (post-ref post 'date)))
+ (updated ,(date->string* (post-date post)))
(link (@ (href ,(string-append "/" (post-slug post) ".html"))
(rel "alternate")))
(summary (@ (type "html"))