mic68.com


Home | About | Quotes | Links | Blog

How to schedule blog posts when using Jekyll with Github

19 Mar 2019

  1. Add this line to _config.yml

     future: false
    

    It causes Jekyll to ignore any posts with dates in the future.

  2. Create a post with the desired posting date

    2019-03-19-schedule-posts-on-jekyll.md

  3. Schedule a task to force Gitgub to rebuild your site every night

    Use your favorite scheduler to execute this command line every night at your chosen time:

     curl "https://api.github.com/repos/USERNAME/REPO/pages/builds" \
     -X GET \
     -H 'Authorization: token THE-TOKEN' \
     -H "Accept: application/vnd.github.mister-fantastic-preview"
    

    Check this article for details on how to set this up:

    How to Schedule Jekyll Posts on Github Pages

This article was posted using the same scheduling solution. It works! :)

Thanks for reading.
–fnds

references