Jekyll: How do I exclude README from _sites?

Created on 23 Dec 2010  ·  3Comments  ·  Source: jekyll/jekyll

If I do _README, then github doesn't display it on the Source tab.

Is there a another way to specify certain files to exclude besides beginning the file name with an underscore?

This would also be useful for the Rakefile, LICENSE, TODO, etc...

Thanks!

Matt

frozen-due-to-age

Most helpful comment

Add something like this to your _config.yml:

exclude: ['README.markdown', 'Gemfile.lock', 'Gemfile']

All 3 comments

Add something like this to your _config.yml:

exclude: ['README.markdown', 'Gemfile.lock', 'Gemfile']

@dabit, thanks! That worked! I did:

exclude: ["CNAME", "Rakefile", "MIT-LICENSE", "README.md", "TODO.taskpaper"]

And if I want to exclude a file in a dir, say: bundles/screen.scss? Or a subdir like bundles/source/? How can I do that?

Was this page helpful?
0 / 5 - 0 ratings