improved display of publication stats
This commit is contained in:
parent
8c7f517314
commit
9478e77f11
@ -27,18 +27,43 @@
|
||||
<h2>Details</h2>
|
||||
<ul class="article-stats">
|
||||
{% if article.stats %}
|
||||
{% set stats = article.stats %}
|
||||
{% if stats.reihe is defined %}
|
||||
<li>aus der Reihe "{{ stats.reihe }}"</li>
|
||||
{# {% if article.date %}
|
||||
<li>Erstveröffentlichung: {{ article.date.strftime("%d.%m.%Y") }}</li>
|
||||
{% endif %} #}
|
||||
{% if article.stats.reihe is defined %}
|
||||
<li>aus der Reihe "{{ article.stats.reihe }}"</li>
|
||||
{% endif %}
|
||||
{% if stats.isbn is defined %}
|
||||
<li>ISBN: {{ stats.isbn }}</li>
|
||||
{% if article.stats.published_in %}
|
||||
{% for p in article.stats.published_in %}
|
||||
<li>Veröffentlicht in <strong>{% if p.link %}<a href="{{ p.link }}" target="_blank">{% endif %}{{ p.title }}{% if p.link %}</a>{% endif %}</strong>
|
||||
<ul>
|
||||
{% if p.issue %}
|
||||
<li>Ausgabe {{ p.issue }}</li>
|
||||
{% endif %}
|
||||
{% if stats.verlag is defined %}
|
||||
<li>erschienen bei: {{ stats.verlag }}</li>
|
||||
{% if p.publisher %}
|
||||
<li>Verlag: {{ p.publisher }}</li>
|
||||
{% endif %}
|
||||
{% if p.editor %}
|
||||
<li>Herausgegeben von {{ p.editor }}</li>
|
||||
{% endif %}
|
||||
{% if p.isbn %}
|
||||
<li>ISBN: {{ p.isbn }}</li>
|
||||
{% endif %}
|
||||
{% if p.date %}
|
||||
<li>erschienen am {{ p.date.strftime("%d.%m.%Y") }}</li>
|
||||
{% endif %}
|
||||
{% if p.read_it_full %}
|
||||
<li><a href="{{ p.read_it_full }}">Volltext verfügbar</a></li>
|
||||
{% endif %}
|
||||
{% if p.read_it_partial %}
|
||||
<li><a href="{{ p.read_it_partial }}">Leseprobe verfügbar</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if article.tags is defined %}
|
||||
{% if article.tags %}
|
||||
<li>Schlagworte:
|
||||
<ul class="article-tags">
|
||||
{% for t in article.tags %}
|
||||
@ -51,11 +76,12 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="body-column-img">
|
||||
{% if article.featured_image is defined %}
|
||||
{% from 'includes/macros.html' import fi %}
|
||||
{% set i = article.featured_image[0] %}
|
||||
{{ fi(i.pic, i.link, i.text, i.title, i.credit, i.credit_link) }}
|
||||
{{ fi(i.pic, i.link, i.alt, i.title, i.credit, i.credit_link) }}
|
||||
{% endif %}
|
||||
{% if article.klappentext %}
|
||||
<h2>Klappentext</h2>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user