src/dlw/ssg_config/templates/article.html aktualisiert

This commit is contained in:
Kim Diallo 2026-01-03 02:34:27 +01:00
parent cd00bb3855
commit f5191a962d
1 changed files with 12 additions and 30 deletions

View File

@ -1,30 +1,12 @@
{% extends "base.html" %}
{% block title %}{{ article.title }}{% endblock %}
{% block content %}
<article>
<header>
<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>
</section>
<div class="downloads">
{% if article.metadata.get('pdf_download') %}
<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>
</article>
{% endblock %}
{% extends "base.html" %}
{% block content %}
<article>
<h1>{{ article.title }}</h1>
<p>{{ article.metadata.get('abstract') }}</p>
<div class="content">{{ article.content }}</div>
<div class="assets">
<a href="{{ article.metadata.get('pdf_download') }}">PDF</a>
<a href="{{ article.metadata.get('audio_download') }}">Audio</a>
</div>
</article>
{% endblock %}