Update tiles.html

This commit is contained in:
Andrew Banchich 2016-08-26 02:33:38 +00:00
parent 5f0d08f189
commit b54d577a1b

View file

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