Skip to content
New issue

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

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

Already on GitHub? # to your account

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

Open
hawkerm opened this issue Mar 10, 2020 · 2 comments
Open

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

hawkerm opened this issue Mar 10, 2020 · 2 comments

Comments

@hawkerm
Copy link

hawkerm commented Mar 10, 2020

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

dario-l commented Jun 10, 2020

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
Copy link
Member

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants