flux.vision/web/mc-pelican/templates/article.html
2026-05-16 11:34:31 +03:00

64 lines
2 KiB
HTML

{% extends "base.html" %}
{% block head %}
{{ super() }}
{% for keyword in article.keywords %}
<meta name="keywords" contents="{{keyword}}" />
{% endfor %}
{% for description in article.description %}
<meta name="description" contents="{{description}}" />
{% endfor %}
{% for tag in article.tags %}
<meta name="tags" contents="{{tag}}" />
{% endfor %}
{% endblock %}
{% set icon_map = {
'performance': 'nf-md-projector',
'cinema': 'nf-md-theater',
'event': 'nf-fa-masks_theater',
'audio': 'nf-fa-music',
'cooperation': 'nf-fa-group',
'software': 'nf-md-code_braces',
'workshop': 'nf-md-school',
'blog': 'nf-fa-newspaper',
'installation': 'nf-fa-cubes',
'hardware': 'nf-cod-circuit_board'
} %}
{% block legend %}{{ article.title|upper }}{% endblock %}
{% block content %}
<section id="content" class="body">
<header>
<h2 class="entry-title">
{% set icon_class = icon_map.get(article.category|string|lower) %}
{% if icon_class %}<i class="nf {{ icon_class }}"></i>{% endif %}
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(article) }}
</header>
<footer class="post-info">
<abbr class="published" title="{{ article.date.isoformat() }}">
{{ article.locale_date }}
</abbr>
{% if article.modified %}
<abbr class="modified" title="{{ article.modified.isoformat() }}">
{{ article.locale_modified }}
</abbr>
{% endif %}
{% if article.authors %}
<address class="vcard author">
by {% for author in article.authors %}
<a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
{% endfor %}
</address>
{% endif %}
</footer><!-- /.post-info -->
<div class="entry-content">
{{ article.content }}
</div><!-- /.entry-content -->
</section>
{% endblock %}