works can now be published_in or published_as
This commit is contained in:
parent
71e8290525
commit
2c9eecacb2
@ -6,7 +6,7 @@ stats:
|
||||
series: Potsdams Andere Welten
|
||||
issue: 1
|
||||
editor: Tobias Radloff
|
||||
published_in:
|
||||
published_as:
|
||||
- title: Veranstaltungsausgabe
|
||||
publisher: Selbstverlag
|
||||
isbn: 978-3-00-077853-7
|
||||
|
||||
@ -6,7 +6,7 @@ stats:
|
||||
series: Potsdams Andere Welten
|
||||
issue: 2
|
||||
editor: Tobias Radloff
|
||||
published_in:
|
||||
published_as:
|
||||
- title: Veranstaltungsausgabe
|
||||
publisher: Selbstverlag
|
||||
link: https://www.potsdams-andere-welten.de
|
||||
|
||||
@ -40,11 +40,19 @@
|
||||
{% if article.stats.editor %}
|
||||
<li>herausgegeben von {{ article.stats.editor }}</li>
|
||||
{% endif %}
|
||||
{% if article.stats.published_in or article.stats.published_as %}
|
||||
{% set ns = namespace() %}
|
||||
{% if article.stats.published_in %}
|
||||
{% for p in 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 = "Verfügbar 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>Veröffentlicht in <strong>{{ p.title }}</strong>
|
||||
<li>{{ ns.title_line }} <strong>{{ p.title }}</strong>
|
||||
<ul>
|
||||
{% endif %}
|
||||
{% if p.date %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user