made post date machine readable

This commit is contained in:
nek0 2016-03-29 19:24:14 +02:00
parent cbe2b3892b
commit 81f5ce549e
3 changed files with 3 additions and 2 deletions

View File

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

View File

@ -1,7 +1,7 @@
<ul>
$for(posts)$
<li>
<a href="$url$">$title$</a> - $date$
<a href="$url$">$title$</a> - <time datetime="$datetime$">$date$</time>
</li>
$endfor$
</ul>

View File

@ -1,5 +1,5 @@
<div class="info">
Posted on $date$
Posted on <time datetime="$datetime$">$date$</time>
$if(author)$
by $author$
$endif$