53 lines
1.7 KiB
HTML
53 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 %}
|
|
<article id="article-body">
|
|
<div class="body-column-text">
|
|
{% if article.content | length is not eq(0) %}{{ article.content | safe }}{% endif %}
|
|
{% if article.klappentext %}
|
|
<h2>Klappentext</h2>
|
|
<blockquote>{{ article.klappentext | e }}</blockquote>
|
|
{% endif %}
|
|
</div>
|
|
<div class="body-column-img">
|
|
{% if article.featured_image is defined %}
|
|
{% from 'includes/macros.html' import fi %}
|
|
{% set i = article.featured_image[0] %}
|
|
{{ fi(i.pic, i.link, i.text, i.title, i.credit, i.credit_link) }}
|
|
{% endif %}
|
|
<div>
|
|
<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 %}{% if not loop.first %}, {% endif%}<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>
|
|
</article>
|
|
<footer class="article-footer">
|
|
<a href="/{{ article.save_as.split('/')[:-1] | join('/') }}/">← {{ article.category }}</a>
|
|
</footer>
|
|
{% endblock content_body %}
|