add modification timestamp

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2022-10-22 07:35:59 +05:30
parent c7cb57950e
commit b08f757b2c
2 changed files with 5 additions and 1 deletions

View File

@@ -133,6 +133,7 @@ postCtx tags =
tagsField "tags" tags
-- <> teaserFieldWithSeparator "((.tease.))" "teaser" "content"
<> dateField "date" "%B %e, %Y"
<> modificationTimeField "modified" "%B %e, %Y"
<> teaserField "teaser" "content"
<> defaultCtx

View File

@@ -4,9 +4,12 @@
Posted on $date$
$if(author)$
by $author$
$endif$ <br>
$endif$<br>
$if(tags)$
Tags: $tags$
$endif$<br>
$if(modified)$
Last modified on $modified$
$endif$
</section>
<hr>