Mobile app version of vmapp.org
Login or Join
Shanna517

: A way to exclude Jekyll from some pages on Github? 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

@Shanna517

Posted in: #Github #Jekyll

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,
ALinuxLover

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Shanna517

1 Comments

Sorted by latest first Latest Oldest Best

 

@Correia994

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme