xiaoheiAh / hugo-theme-pure

A pure theme for Hugo
https://themes.gohugo.io/theme/hugo-theme-pure/
MIT License
266 stars 128 forks source link

hide missing dates from posts #59

Closed ssbarnea closed 4 years ago

ssbarnea commented 4 years ago

If you do not mention the article date a default 0001-01-01 is rendered which is at least ugly.

Some pages may not need a date and I think that the default behaviour should be to hide the date if is invalid.

This is very important for the article view where date is displayed in a very visible place. For other places like archive that is less important. Still, even in this case if rendering the date as an empty string could improve the visual look.