Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: display Last Modified date in post #142

Open
TheGroundZero opened this issue Jul 23, 2020 · 2 comments · Fixed by 1bl4z3r/hermit-V2#8
Open

Feature request: display Last Modified date in post #142

TheGroundZero opened this issue Jul 23, 2020 · 2 comments · Fixed by 1bl4z3r/hermit-V2#8

Comments

@TheGroundZero
Copy link

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
Copy link
Contributor

If you put:

enableGitInfo = true

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

@TheGroundZero
Copy link
Author

TheGroundZero commented Jul 5, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants