This repository has been archived on 2023-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
undefined-pelican-theme/templates/article.html
2022-08-28 14:58:11 +02:00

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 %}