71 lines
2.1 KiB
HTML
71 lines
2.1 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>
|
|
<div id="content-body">
|
|
<div class="body-column-text">
|
|
{% if article.content | length is not eq(0) %}
|
|
{{ article.content }}
|
|
{% endif %}
|
|
{% if article.stats or article.tags %}
|
|
<div>
|
|
<h2>Details</h2>
|
|
<ul class="article-stats">
|
|
{% if article.stats %}
|
|
{% set stats = article.stats %}
|
|
{% if stats.reihe is defined %}
|
|
<li>aus der Reihe "{{ stats.reihe }}"</li>
|
|
{% endif %}
|
|
{% if stats.isbn is defined %}
|
|
<li>ISBN: {{ stats.isbn }}</li>
|
|
{% endif %}
|
|
{% if stats.verlag is defined %}
|
|
<li>erschienen bei: {{ stats.verlag }}</li>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if article.tags is defined %}
|
|
<li>Schlagworte:
|
|
<ul class="article-tags">
|
|
{% for t in article.tags %}
|
|
<li><a href="/tag/{{ t | lower }}/">{{ t }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
{% 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 %}
|
|
{% if article.klappentext %}
|
|
<h2>Klappentext</h2>
|
|
<blockquote>{{ article.klappentext }}</blockquote>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endblock content_body %}
|
|
{% block content_footer %}
|
|
<footer class="content-footer">
|
|
<a href="/{{ article.save_as.split('/')[:-1] | join('/') }}/">← {{ article.category }}</a>
|
|
</footer>
|
|
</article>
|
|
{% endblock content_footer %}
|