Organise partials

This commit is contained in:
Oliver Davies 2016-09-01 01:04:50 +01:00
parent a5d4a04c32
commit fbbe3276e7
8 changed files with 4 additions and 10 deletions

View file

@ -0,0 +1,16 @@
<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>