art/_includes/tiles.html
2016-08-26 02:05:53 +00:00

28 lines
1 KiB
HTML

<section id="one" class="tiles">
{% if site.tiles-source == "pages" %}
{% for post in site.posts limit:site.tiles-count %}
<article>
<span class="image">
<img src="{{ post.image }}" alt="" />
</span>
<header class="major">
<h3><a href="{{ site.baseurl }}{{ post.url }}" class="link">{{ post.title }}</a></h3>
<p>{{ post.description }}</p>
</header>
</article>
{% endfor %}
{% elseif site.tiles-source == "pages" %}
{% for page in site.pages limit:site.tiles-count %}
<article>
<span class="image">
<img src="{{ page.image }}" alt="" />
</span>
<header class="major">
<h3><a href="{{ site.baseurl }}{{ page.url }}" class="link">{{ page.title }}</a></h3>
<p>{{ page.description }}</p>
</header>
</article>
{% endfor %}
{% else %}
{% endif %}
</section>