t-r.de/theme/templates/article.html
2025-02-26 22:45:30 +01:00

64 lines
1.8 KiB
HTML

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