-
-
Save StevenBlack/f5501b42dce78b047824 to your computer and use it in GitHub Desktop.
Arbitrary data passed to 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