Track3 / hermit

A minimal & fast Hugo theme for bloggers
https://hugo-theme-hermit.netlify.com/
MIT License
1.11k stars 305 forks source link

Feature request: display Last Modified date in post #142

Open TheGroundZero opened 4 years ago

TheGroundZero commented 4 years ago

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

Sieboldianus commented 3 years ago

If you put:

enableGitInfo = true

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

TheGroundZero commented 3 years ago

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.