more improvements

This commit is contained in:
eclipse 2025-02-26 22:44:41 +01:00
parent 78b212fccb
commit ccea0d2f35

View File

@ -1,64 +1,55 @@
{% extends "base.html" %} {% extends "base.html" %} {% block title %} {{ article.title }} - {{ SITENAME }}
{% endblock %} {% block metadesc %} {% if article.summary %} {{
{% block title %} article.summary|e }} {% else %} An Article in {{ SITETAG }}: {{ article.title }}
{{ article.title }} - {{ SITENAME }} {% endif %} {% endblock %} {% block content_header %}
{% endblock %}
{% block metadesc %}
{% if article.summary %}
{{ article.summary|e }}
{% else %}
An Article in {{ SITETAG }}: {{ article.title }}
{% endif %}
{% endblock %}
{% block content_header %}
<header id="main-header"> <header id="main-header">
<h1>{{ article.title }}</h1> <h1>{{ article.title }}</h1>
</header> </header>
{% endblock content_header %} {% endblock content_header %} {% block content_body %}
{% block content_body %}
<div class="article-body"> <div class="article-body">
{% if article.featured_image is defined %} {% if article.featured_image is defined %}
<div class="featured-image"> <div class="featured-image">
<a href="{{ article.featured_image }}" title="{{ article.title }} (Bild)"> <a href="{{ article.featured_image }}" title="{{ article.title }} (Bild)">
<img src="{{ article.featured_image }}" alt="{{ article.title }} (Bild)" /> <img
src="{{ article.featured_image }}"
alt="{{ article.title }} (Bild)"
/>
</a> </a>
</div> </div>
{% endif %} {% endif %} {% if article.klappentext is defined %}
{% if article.klappentext is defined %}
<div class="klappentext"> <div class="klappentext">
<blockquote> <blockquote>
<h2>Klappentext</h2> <h2>Klappentext</h2>
<p>{{ article.klappentext }}</p> <p>{{ article.klappentext }}</p>
</blockquote> </blockquote>
</div> </div>
{% endif %} {% endif %} {% if article.content | length is not eq(0) %}
{% if article.content | length is not eq(0) %}
<div>{{ article.content }}</div> <div>{{ article.content }}</div>
{% endif %} {% endif %}
<div> <div>
<hr> <hr />
<h2>Details</h2> <h2>Details</h2>
<ul class="article-stats"> <ul class="article-stats">
{% if article.reihe is defined %} {% if article.reihe is defined %}
<li>aus der Reihe {{ article.reihe }}</li> <li>aus der Reihe {{ article.reihe }}</li>
{% endif %} {% endif %} {% if article.tags is defined %}
{% if article.tags is defined %} <li>
<li>Schlagworte: {% for tag in article.tags %}<a href="/tag/{{ tag }}">{{ tag }}</a>, {% endfor %}</li> Schlagworte: {% for tag in article.tags %}<a href="/tag/{{ tag }}"
{% endif %} >{{ tag }}</a
{% if article.isbn is defined %} >, {% endfor %}
</li>
{% endif %} {% if article.isbn is defined %}
<li>ISBN: {{ article.isbn }}</li> <li>ISBN: {{ article.isbn }}</li>
{% endif %} {% endif %} {% if article.verlag is defined %}
{% if article.verlag is defined %}
<li>erschienen bei: {{ article.verlag }}</li> <li>erschienen bei: {{ article.verlag }}</li>
{% endif %} {% endif %}
</ul> </ul>
</div> </div>
</div> </div>
<hr> <hr />
<footer class="article-footer"> <footer class="article-footer">
<a href="/{{ article.save_as.split('/')[:-1] | join('/') }}/">&#8592; {{ article.category }}</a> <a href="/{{ article.save_as.split('/')[:-1] | join('/') }}/"
>&larr; {{ article.category }}</a
>
</footer> </footer>
{% endblock content_body %} {% endblock content_body %}