2013-11-24 19:15:34 +01:00
|
|
|
{% if site.related_posts.size > 1 %}
|
|
|
|
<aside class="related-posts">
|
2014-07-05 12:59:35 +02:00
|
|
|
|
2014-07-05 13:13:46 +02:00
|
|
|
<h1 class="related-posts-title">Related</h1>
|
2013-11-24 17:31:03 +01:00
|
|
|
|
2015-08-18 22:45:30 +02:00
|
|
|
<div class="grid grid--gutters grid--full grid-small--half grid-medium--third">
|
2014-07-05 12:59:35 +02:00
|
|
|
|
2014-07-05 13:58:53 +02:00
|
|
|
{% for post in site.related_posts limit:6 %}
|
2014-07-05 12:59:35 +02:00
|
|
|
|
2015-08-18 20:55:30 +02:00
|
|
|
<article class="related-post grid__col">
|
2014-07-05 13:58:53 +02:00
|
|
|
<a class="post-title-link" href="{{ post.url }}">
|
2016-04-16 21:31:58 +02:00
|
|
|
{% if post.image %}
|
2017-07-23 20:40:33 +02:00
|
|
|
{% include picture.html size='photothumb' %}
|
2016-04-16 21:31:58 +02:00
|
|
|
{% endif %}
|
2016-04-16 20:37:23 +02:00
|
|
|
<h1 class="post-title">{{ post.title | titlecase }}</h1>
|
2014-07-05 13:58:53 +02:00
|
|
|
</a>
|
|
|
|
</article>
|
2014-07-05 12:59:35 +02: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>
|
2014-07-05 12:59:35 +02:00
|
|
|
|
2013-11-24 19:15:34 +01:00
|
|
|
</aside>
|
2015-08-09 21:50:06 +02:00
|
|
|
{% endif %}
|