Update tiles.html

This commit is contained in:
Andrew Banchich 2016-08-26 02:18:46 +00:00
parent bfb63e5d63
commit 043909a42e

View file

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