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
|
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
|
||||||
]
|
]
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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$
|
||||||
|
|
Loading…
Reference in a new issue