Update tiles.html

This commit is contained in:
Andrew Banchich 2016-08-26 02:28:10 +00:00
parent 043909a42e
commit 5f0d08f189
1 changed files with 14 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<section id="one" class="tiles">
{% if site.tiles-source == "posts" %}
{% if site.tiles-source == 'posts' %}
{% for post in site.posts limit:site.tiles-count %}
<article>
<span class="image">
@ -12,4 +12,17 @@
</article>
{% endfor %}
{% endif %}
{% if 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 %}
{% endif %}
</section>