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?
Asked
Active
Viewed 2,109 times
1 Answers
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.

kikito
- 51,734
- 32
- 149
- 189
-
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 '11 at 18:14
-
Can I do it with GitHub pages? – Vladimir Starkov Jun 25 '13 at 00:15
-
@VladimirStarkov probably, but I have not tried. If you do, please report your findings. – kikito Jun 25 '13 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 '14 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](http://en.wikipedia.org/wiki/Cron), but there are others. – kikito May 26 '14 at 22:29