GitHub pages are not updating

后端 未结 30 2466
[愿得一人]
[愿得一人] 2020-12-04 15:22

I\'m running into a weird issue with GitHub pages. I pushed a new commit to my personal pages page maltzj.github.io, but the new article isn\'t showing up there. When I exec

30条回答
  •  一向
    一向 (楼主)
    2020-12-04 15:26

    For others, also check the dates of your posts. I just had this problem. I'm at UTC+11 and I'm pretty sure the server is at UTC. Thus if I date my posts with my local time, the server thinks they are in the future and won't build them. Using UTC avoided this for me.

    As mentioned by joao cenoura in the comments below:

    • you can tell jekyll to show "future" posts by adding future: true to your _config.yml
    • and/or add timezone: TIMEZONE to specify your timezone.

    See https://jekyllrb.com/docs/configuration/ for more info.

提交回复
热议问题