diff --git a/theme/templates/article.html b/theme/templates/article.html index 4aface9..1f13274 100644 --- a/theme/templates/article.html +++ b/theme/templates/article.html @@ -4,7 +4,7 @@ {{ article.title }} - {{ SITENAME }} {% endblock %} {% block metadesc %} -{% if article.summary %} {{ article.summary|e }} {% else %} An Article in {{ SITETAG }}: {{ article.title }}{% endif %} +{% if article.summary %}{{ article.summary | e }}{% else %}An Article in {{ SITETAG }}: {{ article.title }}{% endif %} {% endblock %} {% block content_all %} @@ -30,36 +30,50 @@ {# {% if article.date %}
  • Erstveröffentlichung: {{ article.date.strftime("%d.%m.%Y") }}
  • {% endif %} #} - {% if article.stats.reihe is defined %} -
  • aus der Reihe "{{ article.stats.reihe }}"
  • + {% if article.stats.series %} +
  • aus der Reihe "{{ article.stats.series }}"
  • {% endif %} {% if article.stats.published_in %} {% for p in article.stats.published_in %} -
  • Veröffentlicht in {% if p.link %}{% endif %}{{ p.title }}{% if p.link %}{% endif %} + {% if p.title %} +{#
  • Veröffentlicht in {% if p.link %}{% endif %}{{ p.title }}{% if p.link %}{% endif %} #} +
  • Veröffentlicht in {{ p.title }}
  • + {% endif %} {% endfor %} {% endif %} {% endif %} @@ -78,7 +92,7 @@
    - {% if article.featured_image is defined %} + {% 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) }}