Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
savornicesei opened this issue Jun 3, 2021 · 2 comments
Open

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

savornicesei opened this issue Jun 3, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@savornicesei
Copy link
Contributor

Issue by hawkerm
Tuesday Mar 10, 2020 at 06:03 GMT
Originally opened as Wyamio/Wyam#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
Copy link
Contributor Author

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
Copy link
Contributor Author

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: statiqdev/Statiq.Web#910

@savornicesei savornicesei added the enhancement New feature or request label Jun 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant