{% extends "puput/base.html" %} {% load i18n wagtailcore_tags wagtailimages_tags puput_tags wagtailroutablepage_tags social_share %} {% block title %} {{ self.title }} | {{ blog_page.title }} {% endblock title %} {% block meta_title %} {% if self.seo_title %} {{ self.seo_title }} {% else %} {{ self.title }} {% endif %} {% endblock meta_title %} {% block meta_description %} {% if self.search_description %} {{ self.search_description }} {% else %} {{ self.body|striptags|truncatewords:20 }} {% endif %} {% endblock meta_description %} {% block canonical %} {% canonical_url entry=self %} {% endblock canonical %} {% block social_share %} {% image self.header_image fill-800x450 as share_image %} {% if self.header_image %} {% endif %} {% endblock social_share %} {% block blog_content %} {% if self.categories.count > 0 %}
{% categories_list self.categories %}
{% endif %}

{{ self.title }}

{{ self.excerpt|safe }}

{% if self.header_image %}
{% image self.header_image fill-940x400 class="img-responsive" %}
{% endif %}
{{ self.body|richtext}}
{% entry_url self blog_page as post_url %}
{% show_comments %}
{% endblock blog_content %} {% block extra_content %} {% if self.has_related %} {% include 'puput/related_entries.html' with entry=self %} {% endif %} {% endblock extra_content %}