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?
Jekyll is a static site generator with built-in support for GitHub Pages and a simplified build process. Jekyll takes Markdown and HTML files and creates a complete static website based on your choice of layouts. Jekyll supports Markdown and Liquid, a templating language that loads dynamic content on your site.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With