Wyam2 / wyam

A modular static content and static site generator written in .NET. Fork of Wyam project.
https://wyam2.github.io/
MIT License
6 stars 1 forks source link

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

Open savornicesei opened 3 years ago

savornicesei commented 3 years ago

Issue by hawkerm Tuesday Mar 10, 2020 at 06:03 GMT Originally opened as https://github.com/Wyamio/Wyam/issues/10


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?

savornicesei commented 3 years ago

Comment by dario-l Wednesday Jun 10, 2020 at 08:58 GMT


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?

savornicesei commented 3 years ago

Comment by daveaglick Wednesday Jun 10, 2020 at 17:50 GMT


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