As Jekyll is a system to create static sites, releasing new content does not happen “on the fly” like in word press or other content management systems.
Tipically these do some logic as they serve your request, that releases the new post, when it is due.
These things don’t happen in jekyll, as you have your content as static html files, that won’t change over time, unless you update them.
In the last post we build a cicd pipeline, that updates the website on every push.
Jekyll has itself some logic to publish post. They won’t get added to the content until their date is reached.
That said, we only need a way to trigger the build every now and then. It’s time for a cronjob.
The cronjob only has to run the post-update hook, as it already calls the build script, and if we change it, these changes will automatically take effect in the timed builds.
Bundler is installed to /usr/local/bin, which is not part of the PATH variable, so we need to overwrite it in the crontab.
And that’s all you need to keep your jekyll site updated.