hermit icon indicating copy to clipboard operation
hermit copied to clipboard

Feature request: display Last Modified date in post

Open TheGroundZero opened this issue 4 years ago • 2 comments

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

TheGroundZero avatar Jul 23 '20 22:07 TheGroundZero

If you put:

enableGitInfo = true

You should get something very similar to what you request: image

Sieboldianus avatar Jul 05 '21 05:07 Sieboldianus

If you put:

enableGitInfo = true

You should get something very similar to what you request: image

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: image

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.

TheGroundZero avatar Jul 05 '21 07:07 TheGroundZero