Skip to content


Allow including within subdirectories #400

richtaur opened this Issue · 2 comments

2 participants


In code like this:

{% include foo.html %}

It would be wonderful to allow for subdirectories, eg:

{% include subdirectory/foo.html %}

Note: could be that this is a Liquid issue …


I was just looking over this bug to see if I could send something upstream to fix this but both looking at the source and testng I was able to include test/test.txt from _includes. Perhaps a mistake in your sources syntax or an older version of Ruby? Liquid/Jekyll?

If you look here: you'll see that Jekyll only conforms the directory, rejects symlinks and then validates that in the end it's in the list */ is a traversal so if you create a directory test/test/test/test/test.txt and then do {% include test/test/test/test/test.txt %} it should include it. The test was done on Ruby1.9.2 with liquid2.2.2.


Right you are, sorry the error was on our end. Thank you!

@richtaur richtaur closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.