9

I suspect that one of the limitations of running a static site is that the administrator has to be at the helm when he wants a post to be published. I'm looking for that suspicion to be validated. Is there a method I haven't discovered?

1 Answer 1

16

Set the site.future option to false on the _config.yml file.

Then set up a cron task in your server to regenerate your blog every day (or hour, whatever you fancy).

Posts set up in the future will be automatically published when the correct date is reached.

5
  • Thank you. I deleted my own answer because some independent testing gave results that made me think I was wrong, but I will experiment later to see what happened.
    – Corey
    Feb 17, 2011 at 18:14
  • Can I do it with GitHub pages? Jun 25, 2013 at 0:15
  • @VladimirStarkov probably, but I have not tried. If you do, please report your findings.
    – kikito
    Jun 25, 2013 at 14:06
  • Probably not working with github pages because AFAIK, github only regenerate the pages when your push something. So if you want to do this you'll have to push something and, hopefully, github will regenerate your site
    – gabuzo
    May 26, 2014 at 19:01
  • In order for this to work you need to have some sort of automatic scheduler in your own machine which periodically publishes the jekyll site to the server - github or otherwise. I suggested cron, but there are others.
    – kikito
    May 26, 2014 at 22:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.