Track3 / hermit

A minimal & fast Hugo theme for bloggers

Home Page:https://hugo-theme-hermit.netlify.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: display Last Modified date in post

TheGroundZero opened this issue · 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

If you put:

enableGitInfo = true

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

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.