mirror of
https://github.com/adulau/art.git
synced 2024-11-22 10:07:08 +00:00
Update tiles.html
This commit is contained in:
parent
88978fe1df
commit
bfb63e5d63
1 changed files with 15 additions and 2 deletions
|
@ -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,6 +10,19 @@
|
|||
<p>{{ post.description }}</p>
|
||||
</header>
|
||||
</article>
|
||||
{% endfor %}
|
||||
{% 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>
|
||||
|
|
Loading…
Reference in a new issue