Dates are incorrect #506
-
Describe the bug I noticed that the dates of each post are wrong. To reproduce
Expected behavior That the dates are correct. Log file Screenshots Environment (please complete the following information):
Additional context I have tried everything but to no avail (deletion of browser data, cookies, cache) but I don't understand why, for example in this post, the last modification date is shown when it does not exist within post four-post.md. I've tried changing it, adding the last modification date of other posts, but no luck. The creation date seems fine instead. Can you have a look? I'm also wondering what's the point of specifying the author of the post since it doesn't appear in the header. Is there any way to show it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is by design. You might want to check the Hugo docs. Hinode uses the creation date and last modification date ( In your example, Hugo detects that you have made changes since the original date (Jan 1st). You can either update the
You would have to modify the desired layout page, for example |
Beta Was this translation helpful? Give feedback.
This is by design. You might want to check the Hugo docs. Hinode uses the creation date and last modification date (
lastmod
). Your modification date can vary with for example the date of your local file, or the git merge date.In your example, Hugo detects that you have made changes since the original date (Jan 1st). You can either update the
date
field to the correct one, or adjust the configuration in your frontmatter.You would have to modify the desired layout page, for example
layouts/_default/single.html
. The Hugo docs provide an example on h…