Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.