more improvements
This commit is contained in:
parent
78b212fccb
commit
ccea0d2f35
@ -1,64 +1,55 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}
|
||||
{{ article.title }} - {{ SITENAME }}
|
||||
{% endblock %}
|
||||
|
||||
{% block metadesc %}
|
||||
{% if article.summary %}
|
||||
{{ article.summary|e }}
|
||||
{% else %}
|
||||
An Article in {{ SITETAG }}: {{ article.title }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content_header %}
|
||||
{% extends "base.html" %} {% block title %} {{ article.title }} - {{ SITENAME }}
|
||||
{% endblock %} {% block metadesc %} {% if article.summary %} {{
|
||||
article.summary|e }} {% else %} An Article in {{ SITETAG }}: {{ article.title }}
|
||||
{% endif %} {% endblock %} {% block content_header %}
|
||||
<header id="main-header">
|
||||
<h1>{{ article.title }}</h1>
|
||||
</header>
|
||||
{% endblock content_header %}
|
||||
|
||||
{% block content_body %}
|
||||
{% endblock content_header %} {% block content_body %}
|
||||
<div class="article-body">
|
||||
{% if article.featured_image is defined %}
|
||||
<div class="featured-image">
|
||||
<a href="{{ article.featured_image }}" title="{{ article.title }} (Bild)">
|
||||
<img src="{{ article.featured_image }}" alt="{{ article.title }} (Bild)" />
|
||||
<img
|
||||
src="{{ article.featured_image }}"
|
||||
alt="{{ article.title }} (Bild)"
|
||||
/>
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if article.klappentext is defined %}
|
||||
{% endif %} {% if article.klappentext is defined %}
|
||||
<div class="klappentext">
|
||||
<blockquote>
|
||||
<h2>Klappentext</h2>
|
||||
<p>{{ article.klappentext }}</p>
|
||||
</blockquote>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if article.content | length is not eq(0) %}
|
||||
{% endif %} {% if article.content | length is not eq(0) %}
|
||||
<div>{{ article.content }}</div>
|
||||
{% endif %}
|
||||
<div>
|
||||
<hr>
|
||||
<hr />
|
||||
<h2>Details</h2>
|
||||
<ul class="article-stats">
|
||||
{% if article.reihe is defined %}
|
||||
{% if article.reihe is defined %}
|
||||
<li>aus der Reihe {{ article.reihe }}</li>
|
||||
{% endif %}
|
||||
{% if article.tags is defined %}
|
||||
<li>Schlagworte: {% for tag in article.tags %}<a href="/tag/{{ tag }}">{{ tag }}</a>, {% endfor %}</li>
|
||||
{% endif %}
|
||||
{% if article.isbn is defined %}
|
||||
{% endif %} {% if article.tags is defined %}
|
||||
<li>
|
||||
Schlagworte: {% for tag in article.tags %}<a href="/tag/{{ tag }}"
|
||||
>{{ tag }}</a
|
||||
>, {% endfor %}
|
||||
</li>
|
||||
{% endif %} {% if article.isbn is defined %}
|
||||
<li>ISBN: {{ article.isbn }}</li>
|
||||
{% endif %}
|
||||
{% if article.verlag is defined %}
|
||||
{% endif %} {% if article.verlag is defined %}
|
||||
<li>erschienen bei: {{ article.verlag }}</li>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<hr />
|
||||
<footer class="article-footer">
|
||||
<a href="/{{ article.save_as.split('/')[:-1] | join('/') }}/">← {{ article.category }}</a>
|
||||
<a href="/{{ article.save_as.split('/')[:-1] | join('/') }}/"
|
||||
>← {{ article.category }}</a
|
||||
>
|
||||
</footer>
|
||||
{% endblock content_body %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user