Skip to content

Example of showDateUpdated: true in frontmatter? #866

Answered by ideenwelt
jamesbraza asked this question in Q&A
Discussion options

You must be logged in to vote

@jamesbraza I had the same issue today and came across your post. If you (after almost a year) still have the problem or others are looking for it, here is my solution.

If you put “showDateUpdated=true” in the params.toml, you won't see anything yet.
You have to enter the command “lastmod: ‘2025-01-24’” in the respective article (content - posts --> e.g. myarticlename.md) in the frontmatters.

# Common-Defined params
date: "2024-12-11"
lastmod: "2025-01-24"
title: "my article"

Then you always have to adjust the date manually when you edit or update the article.
In the article preview and in the article you will then see the updated date in addition to the original date.
I have not current…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@jamesbraza
Comment options

@aakashnand
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jamesbraza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants