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

Displaying modification dates for markdown pages? #1244

Open
h-enk opened this issue May 24, 2024 Discussed in #1242 · 0 comments
Open

Displaying modification dates for markdown pages? #1244

h-enk opened this issue May 24, 2024 Discussed in #1242 · 0 comments

Comments

@h-enk
Copy link
Member

h-enk commented May 24, 2024

Discussed in #1242

Originally posted by StefanSalewski May 19, 2024
Generally, I like it very much when web pages display a creation date, or date of last editing. For some pages that might not be needed, but often it is useful. I have wasted already much time studying pages found by Google, just to discover later that the page was written years ago and the content is fully outdated.

For HTML pages it is easy to add a date display somewhere, I even found a way to use a Hugo shortcode to add the current date automatically.

But most of my content files are markdown. OK, I could insert a date somewhere in the text. But I would prefer a dedicated location, and if possible use of the date value from frontmatter lastmod entry. I spent some time searching for something like that, but could not find it. One possible solution might be the footer menu, which show typically an entry "Privacy Policy". But then the date field would be select-able, which is generally not desired. (Well, when thinking about it, a select-able date field, containing a link to diff of latest changes would be an option.) But I would prefer a plain read-only date field, like the "Brought to you by" text at the lower right of each page.

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

1 participant