I have a GitHub Pages site and was wondering: is there any way to add Jekyll to it, but exclude a few files? I would not like it to render on the index file, how would I achieve that? Thanks,

1 Answer 1


You'd want to make use of the exclude directive in your_config.yml file.

Have a look at Jekyll's global configurables.

Exclude directories and/or files from the conversion. These exclusions are relative to the site's source directory and cannot be outside the source directory.

To be more clear, just open your config file and add this line

exclude: [index.html, folder]

By doing this your index.html(In root directory: same as config directory) file will not going to generate by Jekyll. You can also exclude any folder if you want.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.