One of the tradeoffs of using a static site generator like Jekyll is not having scheduled posts. Sure you can add a date in the future, but static means exactly that, there’s no dynamic part to find and compare dates and times. Without complex hacks, I hadn’t found an easy way to do scheduled posts with Jekyll. That is, until now.
As of Jekyll 3, the
--future flag is disabled on build. This means that if you give a post a date in the future, it’ll be excluded from the build until the time is either equal to or after the date you set. Sweet! We can set the post date to sometime in the future, then trigger a deploy after that time. This is where Zapier comes in.
Zapier allows you to create triggers at a certain time of the day, so I have a trigger set for 6am and 12noon. Zapier then triggers a deploy on Netlify at those times everyday. You can add triggers for however many times you’d like to rebuild the site. I usually post twice a day so I only have two setup. In my posts, I set the time to like 5:45am or 11:50am so that when the triggers run, these new posts will be included in the build.
And there you have it! Scheduled posts in Jekyll with no difficult (or fragile) hacks.
Jesse Schedeen writing for IGN:
Art has been the driving force with all of these new Jinxworld books so far, and Cover is no exception. Mack’s pages offer a winning blend of minimalist crowd shots, lush watercolor paintings and detailed character portraits. The constantly shifting art style enhances the generally dreamy quality of the book, while also playing directly into the theme of identity.
A little late linking to this, but it’s important nonetheless. The particular portion I decided to quote is very important, given that many didn’t like the art. Like Jesse, I felt it complimented the story beautifully, even if in an “unconventional” manner.
The next part of this interesting new story hits shelves this Wednesday. It’s on my pull list this week, you should add it to yours. Permalink