I organize a large set of articles using file name with dates like 2019-10-05-my-post.
1) The config file contains these lines:
frontmatter:
date:
- :filename
- :default
This works perfectly.
Yet, articles with future date file names do get published.
2) Therefore I added
publishDate:
- :filename
- :default
Hugo now does not deploy future posts.
But now the date param does not override file name dates, which worked in 1). The date param is important e.g. if the time of publishing plays a role or to be able to change dates without renaming files.
What I need is actually a combination:
Get date from file names,
yet, do not publish future posts (date from file name).