art/_includes/tiles.html
2020-02-21 20:39:23 -07:00

18 lines
596 B
HTML

{% if 'posts' == site.tiles-source %}
{% assign tiles = site.posts %}
{% elsif 'pages' == site.tiles-source %}
{% assign tiles = site.html_pages | where_exp: "item", "item.show_tile != false" %}
{% endif %}
<section id="one" class="tiles">
{% for tile in tiles limit:site.tiles-count %}
<article>
<span class="image">
<img src="{{ tile.image }}" alt="" />
</span>
<header class="major">
<h3><a href="{{ tile.url | relative_url }}" class="link">{{ tile.title }}</a></h3>
<p>{{ tile.description }}</p>
</header>
</article>
{% endfor %}
</section>