if subtitle is None, it will be replacedwith a no-break space.
This commit is contained in:
@@ -8,17 +8,17 @@
|
||||
|
||||
<div class="medium-8 small cell" style="background: grey">
|
||||
{% with post=featured_post %}
|
||||
<a href="{{post.url}}">
|
||||
<div class="news-hero-large"style="background-image: url('{{post.imageurl}}');)">
|
||||
<a href="{{ post.url }}">
|
||||
<div class="news-hero-large"style="background-image: url('{{ post.imageurl }}');)">
|
||||
<div class="news-hero-text" >
|
||||
<hr>
|
||||
<div class="article-date">
|
||||
<p>{{post.public_date}}</p>
|
||||
<p>{{ post.public_date }}</p>
|
||||
</div>
|
||||
|
||||
<div class="article-title">
|
||||
<h1>{{post.title| safe}}</h1>
|
||||
<p>{{post.subtitle | safe}}</p>
|
||||
<h1>{{ post.title|safe }}</h1>
|
||||
<p>{{ post.subtitle|default_if_none:" "|safe }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -27,17 +27,15 @@
|
||||
</div>
|
||||
|
||||
<div class="medium-4 responsive-side-box cell">
|
||||
|
||||
<a href="{% url 'posts.index' %}"><h1>Neuigkeiten</h1></a>
|
||||
<div class="article-row-section">
|
||||
{% with post=featured_post %}
|
||||
{% include 'posts/partials/_article_row.html' %}
|
||||
{% endwith %}
|
||||
{% endwith %}
|
||||
{% for post in featured_meeting %}
|
||||
{% include 'posts/partials/_meeting_row.html' %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -46,7 +44,6 @@
|
||||
{{ tags_list|tags_to_url }}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="grid-x grid-x-padding">
|
||||
<div class="medium-8 small-12 small-order-2 medium-order-1"">
|
||||
{% for post in posts %}
|
||||
|
||||
Reference in New Issue
Block a user