{% extends "puput/base.html" %}
{% load i18n wagtailcore_tags wagtailimages_tags puput_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 content %}
{% include 'puput/entry_page_header.html' with entry=self %}
{% if self.header_image %}
{% image self.header_image fill-800x450 as header_image %}
{% include 'puput/entry_links.html' with entry=self %}
{% endif %}
{{ self.body|richtext}}
-
{% post_to_facebook self.url '' %}
-
{% post_to_twitter self.title self.url '' %}
-
{% post_to_linkendin self.url '' %}
-
{% post_to_gplus self.url '' %}
{% show_comments %}
{% endblock content %}
{% block extra_content %}
{% if self.has_related %}
{% include 'puput/related_entries.html' with entry=self %}
{% endif %}
{% endblock extra_content %}