art/_includes/tiles.html

29 lines
1 KiB
HTML
Raw Normal View History

2016-08-25 23:15:01 +00:00
<section id="one" class="tiles">
2016-08-26 02:18:46 +00:00
{% for post in site.posts limit:site.tiles-count %}
2016-08-26 02:33:38 +00:00
{% if site.tiles-source == 'posts' %}
2016-08-26 01:49:43 +00:00
<article>
<span class="image">
2016-08-26 01:51:44 +00:00
<img src="{{ post.image }}" alt="" />
2016-08-26 01:49:43 +00:00
</span>
<header class="major">
2016-11-25 19:45:34 +00:00
<h3><a href="{{ post.url | relative_url }}" class="link">{{ post.title }}</a></h3>
2016-08-26 01:51:44 +00:00
<p>{{ post.description }}</p>
2016-08-26 01:49:43 +00:00
</header>
</article>
2016-08-26 02:08:23 +00:00
{% endif %}
2016-08-26 02:33:38 +00:00
{% endfor %}
2016-08-26 02:28:10 +00:00
{% for page in site.pages limit:site.tiles-count %}
2016-08-26 02:33:38 +00:00
{% if site.tiles-source == 'pages' %}
2016-08-26 02:28:10 +00:00
<article>
<span class="image">
<img src="{{ page.image }}" alt="" />
</span>
<header class="major">
2016-11-25 19:45:34 +00:00
<h3><a href="{{ page.url | relative_url }}" class="link">{{ page.title }}</a></h3>
2016-08-26 02:28:10 +00:00
<p>{{ page.description }}</p>
</header>
</article>
{% endif %}
2016-08-26 02:33:38 +00:00
{% endfor %}
2016-08-25 23:15:01 +00:00
</section>