mirror of
https://github.com/adulau/art.git
synced 2024-12-26 02:36:02 +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>
|