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: Last modified date #52

Open
Zbergen-cli opened this issue Aug 10, 2021 · 2 comments
Open

Feature request: Last modified date #52

Zbergen-cli opened this issue Aug 10, 2021 · 2 comments

Comments

@Zbergen-cli
Copy link

Hi, add information about lastmod in the posts.To get
2017/06/14
Updated 2017/06/17

@yihui
Copy link
Owner

yihui commented Aug 10, 2021

This should be simple to implement, but I don't have time for it. You can use the .Lastmod variable: https://gohugo.io/variables/page/

@MaxLiu245
Copy link

Hi, add information about lastmod in the posts.To get 2017/06/14 Updated 2017/06/17

Hi, maybe you can add this in your config.yaml instead of using .Lastmod's default setting, and this works for me. The default setting might get a strange date... (for me it's 2015-04-06)

frontmatter:
  lastmod:
    :fileModTime

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

No branches or pull requests

3 participants