56 lines
1.3 KiB
HTML
56 lines
1.3 KiB
HTML
|
{% extends "base.html" %}
|
||
|
|
||
|
{%- block head_title %}
|
||
|
{{ SITENAME }} :: {{ article.title|striptags }}
|
||
|
{% endblock head_title %}
|
||
|
|
||
|
{% block head %}
|
||
|
{{ super() }}
|
||
|
{% if article.description %}
|
||
|
<meta name="description" content="{{article.description}}" />
|
||
|
{% endif %}
|
||
|
{% for tag in article.tags %}
|
||
|
<meta name="tags" content="{{tag}}" />
|
||
|
{% endfor %}
|
||
|
{% endblock %}
|
||
|
|
||
|
{%- block title %}
|
||
|
{{ article.title }}
|
||
|
{% endblock title %}
|
||
|
|
||
|
{%- block author %}
|
||
|
{% if article.authors %}
|
||
|
{% for author in article.authors %}
|
||
|
{{ author }}
|
||
|
{% if not loop.last %}
|
||
|
,
|
||
|
{% else %}
|
||
|
<br />
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
{{ article.locale_date }}
|
||
|
{% if article.license %}
|
||
|
<br />
|
||
|
<a href="{{ article.license[1] }}">
|
||
|
{{ article.license[0] }}
|
||
|
</a>
|
||
|
{% endif %}
|
||
|
{% endif %}
|
||
|
{% endblock author %}
|
||
|
|
||
|
{%- block abstract %}
|
||
|
{{ article.summary }}
|
||
|
{% endblock abstract %}
|
||
|
|
||
|
{%- block content %}
|
||
|
{% if 'add_sidenotes' in JINJA_FILTERS and 'add_lightboxes' in JINJA_FILTERS %}
|
||
|
{{ article.content | add_sidenotes | add_lightboxes }}
|
||
|
{% elif 'add_sidenotes' in JINJA_FILTERS %}
|
||
|
{{ article.content | add_sidenotes }}
|
||
|
{% elif 'add_lightboxes' in JINJA_FILTERS %}
|
||
|
{{ article.content | add_lightboxes }}
|
||
|
{% else %}
|
||
|
{{ article.content }}
|
||
|
{% endif %}
|
||
|
{% endblock content %}
|