src/dlw/ssg_config/templates/article.html aktualisiert
This commit is contained in:
parent
cd00bb3855
commit
f5191a962d
|
|
@ -1,30 +1,12 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block title %}{{ article.title }}{% endblock %}
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<article>
|
<article>
|
||||||
<header>
|
|
||||||
<h1>{{ article.title }}</h1>
|
<h1>{{ article.title }}</h1>
|
||||||
<p>Veröffentlicht am: {{ article.date | strftime('%Y-%m-%d') }}</p>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<section class="abstract">
|
|
||||||
<h2>Abstract</h2>
|
|
||||||
<p>{{ article.metadata.get('abstract') }}</p>
|
<p>{{ article.metadata.get('abstract') }}</p>
|
||||||
</section>
|
<div class="content">{{ article.content }}</div>
|
||||||
|
<div class="assets">
|
||||||
<div class="downloads">
|
<a href="{{ article.metadata.get('pdf_download') }}">PDF</a>
|
||||||
{% if article.metadata.get('pdf_download') %}
|
<a href="{{ article.metadata.get('audio_download') }}">Audio</a>
|
||||||
<p><a href="{{ SITEURL }}{{ article.metadata.get('pdf_download') }}">PDF herunterladen</a></p>
|
|
||||||
{% endif %}
|
|
||||||
{% if article.metadata.get('audio_download') %}
|
|
||||||
<p><a href="{{ SITEURL }}{{ article.metadata.get('audio_download') }}">Audio (MP3) anhören</a></p>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="entry-content">
|
|
||||||
{{ article.content }}
|
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
Loading…
Reference in New Issue