1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-26 20:01:24 +01:00
blog/_src/_includes/related_posts.html

21 lines
507 B
HTML
Raw Normal View History

2013-11-24 19:15:34 +01:00
{% if site.related_posts.size > 1 %}
<aside class="related-posts">
2013-11-24 17:31:03 +01:00
2013-11-24 19:15:34 +01:00
<h1 class="related-title">Related</h1>
2013-11-24 17:31:03 +01:00
2013-11-24 19:15:34 +01:00
<div class="row">
2013-11-24 17:31:03 +01:00
2013-11-24 19:15:34 +01:00
{% for post in site.posts limit:6 %}
2013-11-24 17:31:03 +01:00
2013-11-24 19:15:34 +01:00
<article class="related-post col2">
<a href="{{ post.url }}">
<h1 class="post-title">{{ post.title }}</h1>
</a>
</article>
2013-11-24 17:31:03 +01:00
2013-11-24 19:15:34 +01:00
{% endfor %}
2013-11-24 17:31:03 +01:00
2013-11-24 19:15:34 +01:00
</div>
2013-11-24 17:31:03 +01:00
2013-11-24 19:15:34 +01:00
</aside>
{% endif %}