Update tiles.html

This commit is contained in:
Andrew Banchich 2016-08-26 02:16:43 +00:00
parent 88978fe1df
commit bfb63e5d63

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,6 +10,19 @@
<p>{{ post.description }}</p> <p>{{ post.description }}</p>
</header> </header>
</article> </article>
{% endfor %}
{% endif %} {% endif %}
{% 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 %}
{% endfor %}
</section> </section>