improved display of publication stats

This commit is contained in:
eclipse 2025-03-12 11:02:35 +01:00
parent 8c7f517314
commit 9478e77f11

View File

@ -27,18 +27,43 @@
<h2>Details</h2> <h2>Details</h2>
<ul class="article-stats"> <ul class="article-stats">
{% if article.stats %} {% if article.stats %}
{% set stats = article.stats %} {# {% if article.date %}
{% if stats.reihe is defined %} <li>Erstveröffentlichung: {{ article.date.strftime("%d.%m.%Y") }}</li>
<li>aus der Reihe "{{ stats.reihe }}"</li> {% endif %} #}
{% if article.stats.reihe is defined %}
<li>aus der Reihe "{{ article.stats.reihe }}"</li>
{% endif %} {% endif %}
{% if stats.isbn is defined %} {% if article.stats.published_in %}
<li>ISBN: {{ stats.isbn }}</li> {% 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 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 stats.verlag is defined %}
<li>erschienen bei: {{ stats.verlag }}</li>
{% endif %} {% endif %}
{% endif %} {% if article.tags %}
{% if article.tags is defined %}
<li>Schlagworte: <li>Schlagworte:
<ul class="article-tags"> <ul class="article-tags">
{% for t in article.tags %} {% for t in article.tags %}
@ -51,11 +76,12 @@
</div> </div>
{% endif %} {% endif %}
</div> </div>
<div class="body-column-img"> <div class="body-column-img">
{% if article.featured_image is defined %} {% if article.featured_image is defined %}
{% from 'includes/macros.html' import fi %} {% from 'includes/macros.html' import fi %}
{% set i = article.featured_image[0] %} {% 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 %} {% endif %}
{% if article.klappentext %} {% if article.klappentext %}
<h2>Klappentext</h2> <h2>Klappentext</h2>