简体   繁体   中英

How do I stop GitHub from regenerating Jekyll site?

I created a Jekyll site and committed it to GitHub. However, as I'm using a custom plugin I'd like to turn off the auto generation Pages does as the site looks a bit different than on my localhost.

My _config.yml includes only the following:

server:      false
auto:        false

source:      .
destination: ./_site

markdown:    maruku
permalink:   date

Try as I might, I can't stop GitHub Pages from regenerating the site. There should be a big blue "Read More" just under the blockquote on the home page http://omgcarlos.com

My repo is here: https://github.com/OMGCarlos/omgcarlos.github.com/

Does Pages simply ignore the config file and regenerate it anyways?

Just add a file named .nojekyll to your repos gh-pages -branch root and there will be no more autogeneration.

Source-Link

If you have a repository at [username].github.com, the contents of the master branch will be served at [username].github.com. If that repository is a Jekyll site, it will be generated.

To avoid the problem you have, you need to make sure that master only contains the contents of your _site/ directory. You can then keep the rest of your source in another branch (such as 'source'). Octopress does this in a nice way (http://octopress.org/docs/deploying/github/) but really, this is just a problem of managing your git repository - you want to be generating the _site directory from the 'source' branch, and keeping the _site

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM