dynamicweb/digitalglarus/templates/glarus_blog/post_detail.html

37 lines
1.5 KiB
HTML
Raw Normal View History

2015-09-08 04:23:32 +00:00
{% extends "glarus_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 %}{{ post.get_title }}{% endblock %}
{% block content_blog %}{% spaceless %}
2016-03-22 00:21:50 +00:00
{% debug %}
2015-09-08 04:23:32 +00:00
<article id="post-{{ post.slug }}" class="post-item post-detail">
{% 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="{{ post.main_image.url }}" alt="{{ post.main_image.default_alt_text }}" class="img-responsive img-full" />
</div>
{% endif %}
<header class="text-center">
<hr></hr>
<h2 class="text-center intro-text">
2016-03-22 00:21:50 +00:00
<a href="{% url 'djangocms_blog:post-detail' post.slug %}" class="post-title center-block">
<b>{{ post.title }}</b>
</a>
<small>
{{ post.date_created }}
</small>
</h2>
<hr></hr>
{% block blog_meta %}
2016-03-22 00:21:50 +00:00
include "glarus_blog/includes/blog_meta.html"
{% endblock %}
2015-09-08 04:23:32 +00:00
</header>
{% endspaceless %}
<div class="digitalglarus-blog-content">{% render_placeholder post.content %}</div>
2015-09-08 04:23:32 +00:00
</article>
{% endblock content_blog %}