{% extends "base.html" %} {% set has_right = True %} {% block title %}{{ article.title|striptags|e }}{% endblock %} {% block head %} {% if article.tags %}{% endif %} {% endblock %} {% block top_center %}

{{ article.title }}

{% endblock %} {% block right_sidebar %} {% endblock %} {% block content %} {% import 'translations.html' as translations with context %} {{ translations.translations_for(article) }} {{ article.content }} {# Fetch content related to the current article from either related-posts or simila-posts plugin. The latter teakes precedence as it produces more robust results. #} {% set related = None %} {% if article.similar_posts %} {% set related = article.similar_posts %} {% elif article.related_posts %} {% set related = article.related_posts %} {% endif %} {% if related %}

Related content

{# TODO: Use fancier related layout with images, as in: https://kevin.deldycke.com/2012/04/beautify-contextual-related-posts-wordpress-plugin/ #}
{% for related_post in related %}
{{ related_post.title }}
{{ related_post.date.strftime('%Y') }}
{{ related_post.summary|striptags|e }}
{% endfor %}
{% endif %} {% if DISQUS_SITENAME and SITEURL and article.status != "draft" %}
{% endif %} {% endblock %}