Hide "Related Posts" section if it is empty
{{ content }}
</article>
+ {% if site.related_posts != empty %}
<aside class="related">
<h2>Related Posts</h2>
<ul class="related-posts">
{% for post in site.related_posts limit:3 %}
<li>
<h3>
- <a href="{{ site.baseurl }}/{{ post.url }}">
+ <a href="{{ site.baseurl }}{{ post.url }}">
{{ post.title }}
<small><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_string }}</time></small>
</a>
{% endfor %}
</ul>
</aside>
+ {% endif %}