dynamicweb/ungleich/templates/ungleich/djangocms_blog/post_detail.html

49 lines
2.3 KiB
HTML

{% extends "ungleich/djangocms_blog/base.html" %}
{% load i18n thumbnail cms_tags %}
{% block meta_description %}{{ post.meta_description }}{% endblock meta_description %}
{% block meta_keywords %}{{ post.meta_keywords }}{% endblock meta_keywords %}
{% block canonical_url %}<link rel="canonical" href="{{ SITE.domain }}{{ view.get_view_url }}"/>{% endblock canonical_url %}
{% block title %}{% page_attribute "page_title" %} - {{ post.get_title }}{% endblock %}
<!-- page header -->
{% block base_header %}
{% include "_header_post_detail.html" %}
{% endblock %}
<!-- page header -->
{% block content_blog %}
<article>
{% if post.app_config.use_placeholder %}
<div class="blog-content">{% render_placeholder post.content %}</div>
{% else %}
<div class="blog-content">{% render_model post "post_text" "post_text" %}</div>
{% endif %}
</article>
{% endblock content_blog %}
{#{% load i18n thumbnail cms_tags %}#}
{##}
{#{% block meta_description %}{{ post.meta_description }}{% endblock meta_description %}#}
{#{% block meta_keywords %}{{ post.meta_keywords }}{% endblock meta_keywords %}#}
{#{% block canonical_url %}<link rel="canonical" href="{{ meta.url }}"/>{% endblock canonical_url %}#}
{#{% block title %}{{ post.get_title }}{% endblock %}#}
{##}
{#{% block content_blog %}{% spaceless %}#}
{#<article id="post-{{ post.slug }}" class="post-item post-detail">#}
{# <header>#}
{# <h2>{% render_model post "title" %}</h2>#}
{# {% block blog_meta %}#}
{# {% include "djangocms_blog/includes/blog_meta.html" %}#}
{# {% endblock %}#}
{# </header>#}
{# {% if post.main_image_id %}#}
{# <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 %}#}
{# <img src="{{ thumb.url }}" alt="{{ post.main_image.default_alt_text }}" width="{{ thumb.width }}" height="{{ thumb.height }}" />#}
{# </div>#}
{# {% endif %}#}
{# {% endspaceless %}#}
{# {% if post.app_config.use_placeholder %}#}
{# <div class="blog-content">{% render_placeholder post.content %}</div>#}
{# {% else %}#}
{# <div class="blog-content">{% render_model post "post_text" "post_text" %}</div>#}
{# {% endif %}#}
{#</article>#}
{#{% endblock content_blog %}#}