Update tiles.html

This commit is contained in:
Andrew Banchich 2016-08-26 02:33:38 +00:00
parent 5f0d08f189
commit b54d577a1b
1 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
<section id="one" class="tiles">
{% if site.tiles-source == 'posts' %}
{% for post in site.posts limit:site.tiles-count %}
{% if site.tiles-source == 'posts' %}
<article>
<span class="image">
<img src="{{ post.image }}" alt="" />
@ -10,10 +10,10 @@
<p>{{ post.description }}</p>
</header>
</article>
{% endfor %}
{% endif %}
{% if site.tiles-source == 'pages' %}
{% endfor %}
{% for page in site.pages limit:site.tiles-count %}
{% if site.tiles-source == 'pages' %}
<article>
<span class="image">
<img src="{{ page.image }}" alt="" />
@ -23,6 +23,6 @@
<p>{{ page.description }}</p>
</header>
</article>
{% endfor %}
{% endif %}
{% endfor %}
</section>