Jekyll - exclude folder, but include subfolder
Asked Answered
T

1

25

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!

Tiki answered 1/3, 2013 at 7:8 Comment(2)
You may want to weigh in here: github.com/jekyll/jekyll/issues/4791Team
This has finally been merged and should be fixed, see #4791Couloir
I
1

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

Insect answered 24/5, 2021 at 18:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.