Marvin3
Marvin3

Reputation: 6041

Jekyll - exclude folder, but include subfolder

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!

Upvotes: 26

Views: 2010

Answers (1)

Jonathan Southern
Jonathan Southern

Reputation: 1395

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

Upvotes: 2

Related Questions