Skip to content

How to automatically configure the update time of articles #872

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

Open
EonD3ng opened this issue Apr 26, 2024 · 1 comment
Open

How to automatically configure the update time of articles #872

EonD3ng opened this issue Apr 26, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@EonD3ng
Copy link

EonD3ng commented Apr 26, 2024

To start with, sincerely welcome the author to come back. Nevertheless, I have a strange phenomenon when using Lovelt, it seems that there is no option to set the article update time. My ideal situation is to be able to automatically update the article modification time through configuration.

Hugo seems to provide such capabilities, through . Lastmod. Also, we can bind to the submission time of Git.

@maco
Copy link

maco commented Mar 24, 2025

lastmod in the frontmatter works. It adds a little "Updated at 2024-05-05" in small text at the bottom of posts and puts the updated date in the SEO JSON in the header.

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

No branches or pull requests

2 participants