Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jekyll - exclude folder, but include subfolder

Tags:

jekyll

I have a structure like:

folder/
folder/subfolder/

I want to exclude everything from folder/, except folder/subfolder/.

I there any way to do this with Jekyll? I tried a few combinations, but neither works, e.g.:

exclude: ["folder"]
include: ["folder/subfolder"]

Thank you for help!

like image 875
Marvin3 Avatar asked Mar 01 '13 07:03

Marvin3


1 Answers

As of Jekyll Version 4.X, it now possible to include subfolders and exclude base folder just as OP did in the posting.

like image 104
Jonathan Southern Avatar answered Dec 27 '22 07:12

Jonathan Southern