xiaoheiAh/hugo-theme-pure

hide missing dates from posts

ssbarnea opened this issue · 0 comments

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.