minimo icon indicating copy to clipboard operation
minimo copied to clipboard

enhance [templates]: hide date if not set

Open dancek opened this issue 6 years ago • 2 comments

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.

dancek avatar Dec 02 '18 13:12 dancek

How about this PR?

dancek avatar Apr 13 '19 17:04 dancek

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.

MunifTanjim avatar Apr 13 '19 18:04 MunifTanjim

Closing as obsolete.

dancek avatar Dec 21 '23 09:12 dancek