{% extends "djangocms_stories/base.html" %} {% load i18n easy_thumbnails_tags cms_tags %} {% block canonical_url %}{% endblock canonical_url %} {% block title %}{{ post_content.title }}{% endblock %} {% block content_blog %}{% spaceless %}

{% render_model post_content "title" "title" %}

{% if post_content.subtitle %}

{% render_model post_content "subtitle" "subtitle" %}

{% endif %} {% block blog_meta %} {% include "djangocms_stories/includes/blog_meta.html" %} {% endblock %}
{% if post_content.post.app_config.use_placeholder and not post_content.post.main_image_id and post_content.media %}
{% placeholder "media" %}
{% else %}
{% thumbnail post_content.post.main_image post_content.post.full_image_options.size crop=post_content.post.full_image_options.crop upscale=post_content.post.full_image_options.upscale subject_location=post_content.post.main_image.subject_location as main_image %} {{ post_content.post.main_image.default_alt_text }}
{% endif %} {% endspaceless %} {% if post_content.post.app_config.use_placeholder and post_content.content %}
{% placeholder "content" %}
{% else %}
{% render_model post_content "post_text" "post_text" "" "safe" %}
{% endif %} {% if post_content.post.related.exists %}
{% for related in post_content.post.related.all %} {% include "djangocms_stories/includes/blog_item.html" with post_content=related.get_content image="true" TRUNCWORDS_COUNT=TRUNCWORDS_COUNT %} {% endfor %}
{% endif %}
{% endblock content_blog %}