art/_includes/tiles.html

29 lines
869 B
HTML
Raw Normal View History

2016-08-25 23:15:01 +00:00
<section id="one" class="tiles">
{% for post in site.posts limit:site.tiles-count %}
{% if site.tiles-source == 'posts' %}
<article>
<span class="image">
<img src="{{ post.image }}" alt="" />
</span>
<header class="major">
<h3><a href="{{ post.url | relative_url }}" class="link">{{ post.title }}</a></h3>
<p>{{ post.description }}</p>
</header>
</article>
{% endif %}
{% endfor %}
{% for page in site.html_pages limit:site.tiles-count %}
{% if site.tiles-source == 'pages' and page.show_tile != false %}
<article>
<span class="image">
<img src="{{ page.image }}" alt="" />
</span>
<header class="major">
<h3><a href="{{ page.url | relative_url }}" class="link">{{ page.title }}</a></h3>
<p>{{ page.description }}</p>
</header>
</article>
{% endif %}
{% endfor %}
2016-08-25 23:15:01 +00:00
</section>