Wyamio / Wyam

A modular static content and static site generator.
MIT License
141 stars 29 forks source link

File not generated as 'Published metadata in the future' #10

Open hawkerm opened 4 years ago

hawkerm commented 4 years ago

Keep getting this message in my output:

Skipping file:///C:/.../doc/news/2020-03-10-Season-9-Kickoff.md due to having Published metadata of 3/10/2020 12:00:00 AM in the future (current date and time is 3/9/2020 11:00:25 PM)

It's very not clear that this means it's grabbing the date metadata data from the filename. I still want it to generate the file, I'll choose to upload it when I choose, I'm prepping in advance and I want to see the preview of the site.

Is there a setting to turn this 'feature' off?

dario-l commented 4 years ago

This message tells you that post has Published date in the future. So it will be invisible until that date and is not generated.

But... @daveaglick I'm also looking for preview mode when I'm planning my posts for future publishing. Is there any switch/param for that?

daveaglick commented 4 years ago

Sorry, I can see why this is annoying. Unfortunately there's no toggle in Wyam to turn this behavior off. In the past I've always added the publish date after drafting a post to avoid this, though I can see where it's helpful to be able setting it earlier.

I'd certainly be willing to take and release a PR that changes this behavior in Wyam. I've also created an issue to address the same problem in Statiq and will get that into the next Statiq Web release: https://github.com/statiqdev/Statiq.Web/issues/910