hermit
hermit copied to clipboard
Feature request: display Last Modified date in post
Hi
Using the Date
, PublishDate
and LastMod
params in the preface, I'm able to add metadata to my blog posts.
The Date
timestamp is displayed at the bottom of the post.
I'd like to also show the LastMod
timestamp, if it's set.
For example:
<Author>
<Tags>
<Wordcount>
<Date> (Modified: <LastMod>)
I like the solution in this theme: https://github.com/panr/hugo-theme-hello-friend#how-to-display-the-last-modified-date-in-your-posts
Anyone willing to add this to this theme?
Kr,
TGZ
If you put:
enableGitInfo = true
You should get something very similar to what you request:
If you put:
enableGitInfo = true
You should get something very similar to what you request:
But I don't want git commit info, also prefer to have YYYY-mm-dd only.
Can't recall if it was added in this repo now or if I did my own change, but this is how I have it now:
EDIT: I'm using the theme hello-friend-ng
which is based on this one. Didn't notice this wat the issue I opened in the hermit
repo back when I was using this theme.