56 lines
1.1 KiB
HTML
56 lines
1.1 KiB
HTML
|
{% 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 %}
|