Created
February 7, 2014 22:03
-
-
Save Greyvy/8872903 to your computer and use it in GitHub Desktop.
Arbitrary data in liquid Jekyll partials
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- partial.html --> | |
<div class="Tile"> | |
{% if include.title %} | |
<h1>{{ include.title }}</h1> | |
{% else %} | |
<h1>no content!</h1> | |
{% endif %} | |
</div><!-- .Tile --> | |
<!-- in any template, partial, layout or content file --> | |
{% include partial.html title="My Super Awesome Tile!" %} | |
{% include partial.html title="Another super sweet tile" %} | |
{% include partial.html %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment