mirror of
https://github.com/adulau/art.git
synced 2024-11-21 17:47:05 +00:00
Update tiles.html
This commit is contained in:
parent
1dd4373946
commit
22dbd8ab2e
1 changed files with 15 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<section id="one" class="tiles">
|
||||
{% unless site.tiles-source == "pages" %}
|
||||
{% if site.tiles-source == "pages" %}
|
||||
{% for post in site.posts limit:site.tiles-count %}
|
||||
<article>
|
||||
<span class="image">
|
||||
|
@ -11,5 +11,18 @@
|
|||
</header>
|
||||
</article>
|
||||
{% endfor %}
|
||||
{% endunless %}
|
||||
{% elseif site.tiles-source == "pages" %}
|
||||
{% for pages 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 %}
|
||||
{% else %}
|
||||
{% endif %}
|
||||
</section>
|
||||
|
|
Loading…
Reference in a new issue