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!

rishat
  • 8,206
  • 4
  • 44
  • 69
Marvin3
  • 5,741
  • 8
  • 37
  • 45
  • You may want to weigh in here: https://github.com/jekyll/jekyll/issues/4791 – kvz Mar 24 '17 at 14:26
  • This has finally been merged and should be fixed, see [#4791](http://www.github.com/jekyll/jekyll/issues/4791) – Christian Aug 29 '19 at 19:11

1 Answers1

1

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

Jonathan Southern
  • 1,121
  • 7
  • 22