148 lines
5.5 KiB
HTML
148 lines
5.5 KiB
HTML
{% extends "base.html" %} {% block title %}{{ article.title }} – {{ SITENAME
|
||
}}{% endblock %} {% block metadesc %}{% if article.summary %}{{ article.summary
|
||
| striptags | e }}{% else %}{{ article.title }}{% endif %}{% endblock %} {%
|
||
block content_all %}
|
||
<article>
|
||
{% block content_header %}
|
||
<header id="content-header">
|
||
<h1>{{ article.title }}</h1>
|
||
</header>
|
||
{% endblock content_header %} {% block content_body %}
|
||
<div id="content-body">
|
||
<div class="body-column-text">
|
||
{% if article.content | length is not eq(0) %} {{ article.content }}
|
||
<br />
|
||
{% endif %} {% if article.blurbs %}
|
||
<div>
|
||
<h2>Pressestimmen</h2>
|
||
{% for b in article.blurbs %}
|
||
<blockquote>
|
||
{{ b.blurb }}
|
||
<footer><cite>— {{ b.source }}</cite></footer>
|
||
</blockquote>
|
||
{% if not loop.last %} {% endif %} {% endfor %}
|
||
</div>
|
||
<br />
|
||
{% endif %} {% if article.stats or article.tags %}
|
||
<div>
|
||
<h2>Details</h2>
|
||
<ul class="article-stats">
|
||
{% if article.stats %} {# {% if article.date %}
|
||
<li>Erstveröffentlichung: {{ article.date.strftime("%d.%m.%Y") }}</li>
|
||
{% endif %} #} {% if article.stats.author %}
|
||
<li>Autor: {{ article.stats.author }}</li>
|
||
{% endif %} {% if article.stats.authors %}
|
||
<li>Autor:innen: {{ article.stats.authors }}</li>
|
||
{% endif %} {% if article.stats.series %}
|
||
<li>aus der Reihe "{{ article.stats.series }}"</li>
|
||
{% endif %} {% if article.stats.issue %}
|
||
<li>{{ article.stats.issue }}</li>
|
||
{% endif %} {% if article.stats.editor %}
|
||
<li>herausgegeben von {{ article.stats.editor }}</li>
|
||
{% endif %} {% if article.stats.publisher %}
|
||
<li>Verlag: {{ article.stats.publisher }}</li>
|
||
{% endif %} {% if article.stats.published_in or
|
||
article.stats.published_as %} {% set ns = namespace() %} {% if
|
||
article.stats.published_in %} {% set ns.stats =
|
||
article.stats.published_in %} {% set ns.title_line = "Veröffentlicht
|
||
in" %} {% else %} {% set ns.stats = article.stats.published_as %} {%
|
||
set ns.title_line = "Erschienen als" %} {% endif %} {% for p in
|
||
ns.stats %} {% if p.title %} {#
|
||
<li>
|
||
Veröffentlicht in
|
||
<strong
|
||
>{% if p.link %}<a href="{{ p.link }}" target="_blank"
|
||
>{% endif %}{{ p.title }}{% if p.link %}</a
|
||
>{% endif %}</strong
|
||
>
|
||
#}
|
||
</li>
|
||
<li>
|
||
{{ ns.title_line }} <strong>{{ p.title }}</strong>
|
||
<ul>
|
||
{% endif %} {% if p.date %}
|
||
<li>
|
||
{% if p.date is string %}{{ p.date }}{% else %}{{
|
||
p.date.strftime("%d.%m.%Y") }}{% endif %}
|
||
</li>
|
||
{% endif %} {% if p.issue %}
|
||
<li>Ausgabe {{ p.issue }}</li>
|
||
{% endif %} {% if p.publisher %}
|
||
<li>Verlag: {{ p.publisher }}</li>
|
||
{% endif %} {% if p.series %}
|
||
<li>aus der Reihe "{{ p.series }}"</li>
|
||
{% endif %} {% if p.editor %}
|
||
<li>herausgegeben von {{ p.editor }}</li>
|
||
{% endif %} {% if p.isbn %}
|
||
<li>ISBN: {{ p.isbn }}</li>
|
||
{% endif %} {% if p.issn %}
|
||
<li>ISSN: {{ p.issn }}</li>
|
||
{% endif %} {% if p.pages %}
|
||
<li>Seitenzahl: {{ p.pages }}</li>
|
||
{% endif %} {% if p.price %}
|
||
<li>Preis: {{ p.price }}</li>
|
||
{% endif %} {% if p.read_it_full %}
|
||
<li>
|
||
<a href="{{ p.read_it_full }}" target="_blank"
|
||
>Volltext verfügbar</a
|
||
>
|
||
</li>
|
||
{% endif %} {% if p.read_it_partial %}
|
||
<li>
|
||
<a href="{{ p.read_it_partial }}" target="_blank"
|
||
>Leseprobe verfügbar</a
|
||
>
|
||
</li>
|
||
{% endif %} {% if p.link and p.link_text %}
|
||
<li>
|
||
<a href="{{ p.link }}" target="_blank">{{ p.link_text }}</a>
|
||
</li>
|
||
{% endif %} {% if p.title %}
|
||
</ul>
|
||
</li>
|
||
{% endif %} {% endfor %} {% endif %} {% endif %} {% if article.tags %}
|
||
<li>
|
||
Schlagworte:
|
||
<ul class="article-tags">
|
||
{% for t in article.tags %}
|
||
<li>
|
||
<a
|
||
href="/tag/{{ t | lower | replace('- ', '-') | replace(' ', '-') }}/"
|
||
>{{ t }}</a
|
||
>
|
||
</li>
|
||
{% endfor %}
|
||
</ul>
|
||
</li>
|
||
{% endif %}
|
||
</ul>
|
||
</div>
|
||
{% endif %}
|
||
</div>
|
||
|
||
<div class="body-column-img">
|
||
{% if article.featured_image %} {% from 'includes/macros.html' import fi
|
||
%} {% set i = article.featured_image[0] %} {{ fi(i.pic, i.link, i.alt,
|
||
i.title, i.credit, i.credit_link) }} {% endif %} {% if article.klappentext
|
||
%}
|
||
<div>
|
||
<h2>Klappentext</h2>
|
||
<blockquote>{{ article.klappentext }}</blockquote>
|
||
</div>
|
||
{% endif %}
|
||
</div>
|
||
</div>
|
||
|
||
{% endblock content_body %} {% block content_footer %}
|
||
<footer class="content-footer">
|
||
{% if article.category == 'Neues' %} veröffentlicht am {{ article.date |
|
||
strftime("%d.%m.%y") }} {% else %}
|
||
<a href="/{{ article.save_as.split('/')[:-1] | join('/') }}/"
|
||
>← {{ article.category }}</a
|
||
>
|
||
{% endif %}
|
||
</footer>
|
||
{% endblock content_footer %}
|
||
</article>
|
||
{% endblock content_all %}
|