minimo
minimo copied to clipboard
enhance [templates]: hide date if not set
I don't want to set a post date for all content, and I'm sure nobody needs those "0001-01-01" dates. This hides the posted-on element if date is not set.
How about this PR?
Sorry for the late response.
How about this PR?
As far as I remember, Hugo as a few params for setting the date for the content (something like publishDate
or something else, I don't remember exactly). And there is some kind of fallback system, so if one is not present, Hugo uses another one. And because of this, different people uses different params for setting the date (if I'm not wrong).
So, instead of checking for date
param, we probably should add a param called hidePostedOn
and check if it's set to true
.
Closing as obsolete.