Update partials

This commit is contained in:
Oliver Davies 2016-09-01 08:00:21 +01:00
parent fbbe3276e7
commit 9bd39e9692
19 changed files with 129 additions and 124 deletions

View file

@ -1,16 +1,18 @@
<div class="latest-posts">
<div class="latest-posts__heading">Latest blog posts</div>
{% if page.url == '/.' %}
<div class="latest-posts">
<div class="latest-posts__heading">Latest blog posts</div>
<ul>
{% for post in data.posts|slice(0, site.latest_posts) %}
<li class="post">
<span class="post__title">
<a href="{{ post.url }}">
{{ post.title }}
</a>
</span> -
<span class="post__date">{{ post.date|date(site.default_date_format) }}</span>
</li>
{% endfor %}
</ul>
</div>
<ul>
{% for post in data.posts|slice(0, site.latest_posts) %}
<li class="post">
<span class="post__title">
<a href="{{ post.url }}">
{{ post.title }}
</a>
</span> -
<span class="post__date">{{ post.date|date(site.default_date_format) }}</span>
</li>
{% endfor %}
</ul>
</div>
{% endif %}