djangocms_blog/djangocms_blog/templates/djangocms_blog/post_detail.html

32 lines
1.4 KiB
HTML
Raw Normal View History

2014-01-04 16:07:09 +00:00
{% extends "djangocms_blog/base.html" %}
{% load i18n easy_thumbnails_tags cms_tags %}
2014-01-04 16:07:09 +00:00
{% block canonical_url %}<link rel="canonical" href="{{ meta.url }}"/>{% endblock canonical_url %}
{% 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">
{% 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 %}
{% 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>
{% endblock content_blog %}