mirror of
https://github.com/adulau/art.git
synced 2024-11-23 10:37:13 +00:00
18 lines
596 B
HTML
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>
|