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 postCtx tags = mconcat
[ modificationTimeField "mtime" "%U" [ modificationTimeField "mtime" "%U"
, dateField "date" "%B %e, %Y" , dateField "date" "%B %e, %Y"
, dateField "datetime" "%F"
, tagsField "tags" tags , tagsField "tags" tags
, defaultContext , defaultContext
] ]

View file

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

View file

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