2014-01-04 16:07:09 +00:00
{% extends "djangocms_blog/base.html" %}
2014-01-09 07:51:03 +00:00
{% load i18n thumbnail cms_tags %}
2014-01-04 16:07:09 +00:00
2014-03-05 17:11:32 +00:00
{% block meta_description %}{{ post.meta_description }}{% endblock meta_description %}
2014-03-06 19:02:52 +00:00
{% block meta_keywords %}{{ post.meta_keywords }}{% endblock meta_keywords %}
2015-11-19 18:51:06 +00:00
{% block canonical_url %}< link rel = "canonical" href = "{{ meta.url }}" / > {% endblock canonical_url %}
2014-09-11 10:12:34 +00:00
{% block title %}{{ post.get_title }}{% endblock %}
2014-03-05 17:11:32 +00:00
2014-01-10 05:39:36 +00:00
{% block content_blog %}{% spaceless %}
2014-01-04 16:07:09 +00:00
< article id = "post-{{ post.slug }}" class = "post-item post-detail" >
< header >
2014-01-22 17:14:50 +00:00
< h2 > {% render_model post "title" %}< / h2 >
2015-02-21 18:32:22 +00:00
{% block blog_meta %}
{% include "djangocms_blog/includes/blog_meta.html" %}
{% endblock %}
2014-01-04 16:07:09 +00:00
< / header >
2014-01-10 05:39:36 +00:00
{% if post.main_image_id %}
2014-01-04 16:07:09 +00:00
< div class = "blog-visual" >
2015-01-12 22:31:26 +00:00
{% thumbnail post.main_image post.full_image_options.size crop=post.full_image_options.crop upscale=post.full_image_options.upscale subject_location=post.main_image.subject_location as thumb %}
2014-01-10 05:39:36 +00:00
< img src = "{{ thumb.url }}" alt = "{{ post.main_image.default_alt_text }}" width = "{{ thumb.width }}" height = "{{ thumb.height }}" / >
2014-01-04 16:07:09 +00:00
< / div >
{% endif %}
2015-02-20 17:11:14 +00:00
{% endspaceless %}
2015-09-19 23:11:14 +00:00
{% if post.app_config.use_placeholder %}
2015-02-21 18:32:22 +00:00
< div class = "blog-content" > {% render_placeholder post.content %}< / div >
{% else %}
2016-08-26 06:56:27 +00:00
< div class = "blog-content" > {% render_model post "post_text" "post_text" "" "safe" %}< / div >
2015-02-21 18:32:22 +00:00
{% endif %}
2016-06-26 10:24:58 +00:00
{% if view.liveblog_enabled %}
{% include "liveblog/includes/post_detail.html" %}
{% endif %}
2014-01-04 16:07:09 +00:00
< / article >
2015-02-20 17:11:14 +00:00
{% endblock content_blog %}