: 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
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
More posts by @Shanna517
1 Comments
Sorted by latest first Latest Oldest Best
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.