{% extends "base.html" %}
{% load static core_tags i18n %}
{% load wagtailcore_tags wagtailimages_tags %}
{% block body_class %}template-{{ self.get_verbose_name|slugify }}{% endblock %}
{% block content %}
{{self.title}}
{{self.subtitle}}
{% if self.image %}
{% image self.image width-240 %}
{% endif %}
{% social_media_article %}
{% for block in self.body %}
{% if block.block_type == 'heading' %}
{{ block.value }}
{% elif block.block_type == 'image' %}
{% image block.value width-240 %}
{% elif block.block_type == 'numbered_list' %}
{% for item in block.value %}
- {{ item|handle_markdown }}
{% endfor %}
{% elif block.block_type == 'list' %}
{% for item in block.value %}
- {{ item|handle_markdown }}
{% endfor %}
{% else %}
{{ block }}
{% endif %}
{% endfor %}
{% if settings.core.SiteSettings.enable_clickable_tags %}
{% for tag in self.tags_list %}
{{tag}}
{% endfor%}
{% endif %}
{% get_translation self.get_parent_section as section %}
{% get_next_article self as next_article %}
{% if next_article and self.get_parent_section.enable_next_section %}
{% trans "Next up in" %} {{ section.title }}
{% endif %}
{% if self.get_parent_section.enable_recommended_section %}
{% get_recommended_articles self as recommended_articles %}
{% trans "Recommended" %}
{% for article in recommended_articles %}
{% endfor %}
{% endif %}
{% include "comments/comment_block.html" %}
{% endblock %}