Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 620
Oz Ramos Avatar asked Nov 02 '12 04:11

Oz Ramos


People also ask

How does Jekyll work on GitHub?

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.


2 Answers

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

Source-Link

like image 179
kaiser Avatar answered Sep 20 '22 15:09

kaiser


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

like image 30
heliotrope Avatar answered Sep 21 '22 15:09

heliotrope