Locally building and pushing jekyll site to github pages

前端 未结 3 1501
猫巷女王i
猫巷女王i 2021-01-03 11:55

I am using the gem \"jekyll-assets\" on my site and it fails when pushing to github pages. I have read that a way around this is to build the site locally, which builds just

3条回答
  •  花落未央
    2021-01-03 12:32

    You need to push only the content of the _site folder. Nothing else, nor the folder itself.

    If you are setting up a project site, push the content to the gh-pages branch. If it's your user website, the repo must be named username.github.io and your site root needs to be the master branch.

    Let me know how it goes! :)

    Hope to have helped!

提交回复
热议问题