What's the best way to suppress the date on a particular page? #78
-
Hi! I'm completely new to Hugo and experimenting with this theme for a blog. I can't find an obvious way to suppress showing the date on a particular page. I do want to have a date on a blog post, of course, but on an "About" page, it doesn't make a lot of sense to me to show a date. I was hoping I would be able to suppress the date by removing it from the meta data of the markdown file or with some other kind of config, but I can't find how. Or will I have to modify the theme code to achieve this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @moritzreiter. Welcome to Hugo blog awesome discussions. Thanks for posting this question.
I agree. I have pushed few commits which make it optional to specify the date. Solution
You have to do exactly this. Simply omit the date parameter. I observed that you have added this theme as Git module in your blog. Please update your Git module to make use of this feature. DemoMarkdown file: hugo-blog-awesome/exampleSite/content/pages/about.md Lines 1 to 6 in 68c1599 Rendered page corresponding to the above Markdown file: https://hba.sid.one/pages/about/ ConclusionLet me know if this solution works for you. In case it does, you can mark this as the answer. Otherwise, feel free to post your observations here. |
Beta Was this translation helpful? Give feedback.
Hi @moritzreiter. Welcome to Hugo blog awesome discussions.
Thanks for posting this question.
I agree. I have pushed few commits which make it optional to specify the date.
Solution
You have to do exactly this. Simply omit the date parameter.
I observed that you have added this theme as Git module in your blog. Please update your Git module to make use of this feature.
Demo
Markdown file:
hugo-blog-awesome/exampleSite/content/pages/about.md
Lines 1 to 6 in 68c1599