made post date machine readable
This commit is contained in:
parent
cbe2b3892b
commit
81f5ce549e
3 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
]
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div class="info">
|
||||
Posted on $date$
|
||||
Posted on <time datetime="$datetime$">$date$</time>
|
||||
$if(author)$
|
||||
by $author$
|
||||
$endif$
|
||||
|
|
Loading…
Reference in a new issue