Jekyll doesn't allow for source files, such as layouts or includes, to be outside/below a site's source tree. This worked in previous versions, but was disabled per github requirements for security. The jekyll-unsanitize gem resolves this issue by monkey patching the affected parts of Jekyll. The relevant bug report can be found at the following:
- Use jekyll-unsanitize 0.3 for Jekyll 2.5.3
- Use jekyll-unsanitize 0.4 for Jekyll 3.0.1
To install the current release, run the following:
gem install jekyll-unsanitize
To install from source:
git clone https://github.com/sumdog/jekyll-unsanitize
cd jekyll-unsanitize
gem build jekyll-unsanitize.gemspec
gem install jekyll-unsanitize-<version>.gem
In your config.yml, add the following section:
gems:
- jekyll-unsanitize