art/_includes/tiles.html

19 lines
596 B
HTML
Raw Permalink Normal View History

{% 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 %}
2016-08-25 23:15:01 +00:00
<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>
2020-02-22 03:39:23 +00:00
<p>{{ tile.description }}</p>
</header>
</article>
{% endfor %}
2016-08-25 23:15:01 +00:00
</section>