2015-05-23 10:16:38 +00:00
|
|
|
{% load cms_tags staticfiles %}
|
2017-06-08 00:20:32 +00:00
|
|
|
{% load i18n %}
|
2015-05-23 10:16:38 +00:00
|
|
|
<!-- Page Header -->
|
|
|
|
<!-- Set your background image for this header on the line below. -->
|
|
|
|
<header class="intro-header"
|
|
|
|
{% if post.main_image_id %}
|
|
|
|
style="background-image: url('{{ post.main_image.url }}');"
|
2016-04-01 10:37:01 +00:00
|
|
|
{% else %}
|
|
|
|
style="background-image: url('{% static 'blog.ungleich.ch/img/home-bg.jpg' %}');"
|
2015-05-23 10:16:38 +00:00
|
|
|
{% endif %}
|
|
|
|
>
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
|
|
|
<div class="post-heading">
|
|
|
|
<h1> {% render_model post "title" %} </h1>
|
|
|
|
<h2 class="subheading">
|
|
|
|
{% render_model post "abstract" "" "" 'truncatewords_html:10' %}
|
|
|
|
</h2>
|
|
|
|
<span class="meta">
|
2017-05-30 13:57:36 +00:00
|
|
|
{% trans "Posted on"%} {{ post.date_published|date:"DATE_FORMAT" }}
|
2015-05-23 10:16:38 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-04-27 01:25:14 +00:00
|
|
|
</header>
|