Add documentation on the include_relative tag

This commit is contained in:
Garen Torikian 2014-09-07 12:14:19 -07:00
parent 4da07bb2c3
commit afd30b0a9b
1 changed files with 11 additions and 0 deletions

View File

@ -281,6 +281,17 @@ These parameters are available via Liquid in the include:
{% raw %}{{ include.param }}{% endraw %} {% raw %}{{ include.param }}{% endraw %}
{% endhighlight %} {% endhighlight %}
### Including files relative to another file
You can also choose to include files relative to the current file:
{% highlight ruby %}
{% raw %}{% include_relative somedir/footer.html %}{% endraw %}
{% endhighlight %}
You won't need to place your included content within the `_includes` directory.
All the other capaibilities of the `include` tag are available to the `include_relative` tag.
### Code snippet highlighting ### Code snippet highlighting
Jekyll has built in support for syntax highlighting of [over 100 Jekyll has built in support for syntax highlighting of [over 100