61 lines
1.7 KiB
HTML
61 lines
1.7 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 id="article-body">
|
|
{% if article.featured_image is defined %}
|
|
{% from 'includes/featured_image.html' import fi %}
|
|
{% set i = article.featured_image[0] %}
|
|
{{ fi(i.pic, i.link, i.text, i.credit) }}
|
|
{% 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('/') }}/"
|
|
>← {{ article.category }}</a
|
|
>
|
|
</footer>
|
|
{% endblock content_body %}
|