Skip to content

Instantly share code, notes, and snippets.

@StevenBlack
Forked from Greyvy/gist:8872903
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StevenBlack/f5501b42dce78b047824 to your computer and use it in GitHub Desktop.
Save StevenBlack/f5501b42dce78b047824 to your computer and use it in GitHub Desktop.
Arbitrary data passed to Jekyll partials
<!-- 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