From 81f5ce549e1f0761c486b69eeb5330237b584324 Mon Sep 17 00:00:00 2001 From: nek0 Date: Tue, 29 Mar 2016 19:24:14 +0200 Subject: [PATCH] made post date machine readable --- src/Main.hs | 1 + templates/post-list.html | 2 +- templates/post.html | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Main.hs b/src/Main.hs index dcbbc75..f06198d 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -124,6 +124,7 @@ postCtx :: Tags -> Context String postCtx tags = mconcat [ modificationTimeField "mtime" "%U" , dateField "date" "%B %e, %Y" + , dateField "datetime" "%F" , tagsField "tags" tags , defaultContext ] diff --git a/templates/post-list.html b/templates/post-list.html index 995c6a1..22336d4 100644 --- a/templates/post-list.html +++ b/templates/post-list.html @@ -1,7 +1,7 @@ diff --git a/templates/post.html b/templates/post.html index eb888ca..c5c2cbf 100644 --- a/templates/post.html +++ b/templates/post.html @@ -1,5 +1,5 @@
- Posted on $date$ + Posted on $if(author)$ by $author$ $endif$