undefined-theme/templates/article.html

56 lines
1.1 KiB
HTML
Raw Normal View History

2023-10-24 13:53:49 +02:00
{% extends "base.html" %}
{% block head_title %}
{{ SITENAME | striptags }} :: {{ article.title|striptags }}
{% endblock head_title %}
{% block head %}
{{ super() }}
{% if article.summary %}
<meta name="description" content="{{article.summary}}" />
{% endif %}
{% for tag in article.tags %}
<meta name="tags" content="{{tag}}" />
{% endfor %}
{% endblock %}
{% block main %}
<section id="title">
<h1>
{{ article.title }}
</h1>
<p id="meta">
{% if article.authors %}
{% for author in article.authors %}
{{ author }}
{% if not loop.last %}
,
{% else %}
<br />
{% endif %}
{% endfor %}
{% endif %}
{{ article.locale_date }}
{% if article.license %}
<br />
<a href="{{ article.license[1] }}">
{{ article.license[0] }}
</a>
{% endif %}
</p>
</section>
{% if article.summary %}
<section id="abstract">
<p>
{{ article.summary }}
</p>
</section>
<article>
{% if 'add_sidenotes' in JINJA_FILTERS %}
{{ article.content | add_sidenotes }}
{% else %}
{{ article.content }}
{% endif %}
</article>
{% endif %}
{% endblock main %}