diff --git a/theme/templates/article.html b/theme/templates/article.html index a9d3ce6..cb7504d 100644 --- a/theme/templates/article.html +++ b/theme/templates/article.html @@ -1,157 +1,147 @@ -{% 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 %} +{% 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 %}
- {% block content_header %}

{{ article.title }}

- {% endblock content_header %} - - {% block content_body %} + {% endblock content_header %} {% block content_body %}
- {% if article.content | length is not eq(0) %} - {{ article.content }} -
- {% endif %} - - {% if article.blurbs %} + {% if article.content | length is not eq(0) %} {{ article.content }} +
+ {% endif %} {% if article.blurbs %}

Pressestimmen

- {% for b in article.blurbs %} + {% for b in article.blurbs %}
{{ b.blurb }}
— {{ b.source }}
- {% if not loop.last %} {% endif %} - {% endfor %} + {% if not loop.last %} {% endif %} {% endfor %}
-
- {% endif %} - - {% if article.stats or article.tags %} +
+ {% endif %} {% if article.stats or article.tags %}

Details

    - {% if article.stats %} -{# {% if article.date %} -
  • Erstveröffentlichung: {{ article.date.strftime("%d.%m.%Y") }}
  • - {% endif %} #} - {% if article.stats.author %} + {% if article.stats %} {# {% if article.date %} +
  • Erstveröffentlichung: {{ article.date.strftime("%d.%m.%Y") }}
  • + {% endif %} #} {% if article.stats.author %}
  • Autor: {{ article.stats.author }}
  • - {% endif %} - {% if article.stats.authors %} + {% endif %} {% if article.stats.authors %}
  • Autor:innen: {{ article.stats.authors }}
  • - {% endif %} - {% if article.stats.series %} + {% endif %} {% if article.stats.series %}
  • aus der Reihe "{{ article.stats.series }}"
  • - {% endif %} - {% if article.stats.issue %} + {% endif %} {% if article.stats.issue %}
  • {{ article.stats.issue }}
  • - {% endif %} - {% if article.stats.editor %} + {% endif %} {% if article.stats.editor %}
  • herausgegeben von {{ article.stats.editor }}
  • - {% endif %} - {% if article.stats.publisher %} + {% endif %} {% if article.stats.publisher %}
  • Verlag: {{ article.stats.publisher }}
  • - {% 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 %} -{#
  • Veröffentlicht in {% if p.link %}{% endif %}{{ p.title }}{% if p.link %}{% endif %} #} -
  • {{ ns.title_line }} {{ p.title }} + {% 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 %} {# +
  • + Veröffentlicht in + {% if p.link %}{% endif %}{{ p.title }}{% if p.link %}{% endif %} + #} +
  • +
  • + {{ ns.title_line }} {{ p.title }}
      - {% endif %} - {% if p.date %} -
    • {% if p.date is string %}{{ p.date }}{% else %}{{ p.date.strftime("%d.%m.%Y") }}{% endif %}
    • - {% endif %} - {% if p.issue %} + {% endif %} {% if p.date %} +
    • + {% if p.date is string %}{{ p.date }}{% else %}{{ + p.date.strftime("%d.%m.%Y") }}{% endif %} +
    • + {% endif %} {% if p.issue %}
    • Ausgabe {{ p.issue }}
    • - {% endif %} - {% if p.publisher %} + {% endif %} {% if p.publisher %}
    • Verlag: {{ p.publisher }}
    • - {% endif %} - {% if p.series %} + {% endif %} {% if p.series %}
    • aus der Reihe "{{ p.series }}"
    • - {% endif %} - {% if p.editor %} + {% endif %} {% if p.editor %}
    • herausgegeben von {{ p.editor }}
    • - {% endif %} - {% if p.isbn %} + {% endif %} {% if p.isbn %}
    • ISBN: {{ p.isbn }}
    • - {% endif %} - {% if p.issn %} + {% endif %} {% if p.issn %}
    • ISSN: {{ p.issn }}
    • - {% endif %} - {% if p.read_it_full %} -
    • Volltext verfügbar
    • - {% endif %} - {% if p.read_it_partial %} -
    • Leseprobe verfügbar
    • - {% endif %} - {% if p.link and p.link_text %} -
    • {{ p.link_text }}
    • - {% endif %} - {% if p.title %} + {% endif %} {% if p.pages %} +
    • Seitenzahl: {{ p.pages }}
    • + {% endif %} {% if p.price %} +
    • Preis: {{ p.price }}
    • + {% endif %} {% if p.read_it_full %} +
    • + Volltext verfügbar +
    • + {% endif %} {% if p.read_it_partial %} +
    • + Leseprobe verfügbar +
    • + {% endif %} {% if p.link and p.link_text %} +
    • + {{ p.link_text }} +
    • + {% endif %} {% if p.title %}
  • - {% endif %} - {% endfor %} - {% endif %} - {% endif %} - {% if article.tags %} -
  • Schlagworte: + {% endif %} {% endfor %} {% endif %} {% endif %} {% if article.tags %} +
  • + Schlagworte:
  • - {% endif %} + {% endif %}
- {% endif %} + {% endif %}
- {% 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 %} + {% 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 + %}

Klappentext

{{ article.klappentext }}
- {% endif %} -
+ {% endif %} +
- {% endblock content_body %} - - {% block content_footer %} + {% endblock content_body %} {% block content_footer %} {% endblock content_footer %} -
{% endblock content_all %}