flux.vision/web/mc-pelican/templates/archives.html

38 lines
1.1 KiB
HTML
Raw Normal View History

2023-07-01 11:01:17 +03:00
{% extends "base.html" %}
{% block content %}
<section id="content">
{% block content_title %}
{% endblock %}
2025-12-22 00:21:22 +02:00
{% 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'
} %}
2023-07-01 11:01:17 +03:00
{% for article in dates if article.category != 'blog' %}
<article class="hentry">
<header>
<h2 class="entry-title">
2025-12-22 00:21:22 +02:00
{% set icon_class = icon_map.get(article.category|string|lower) %}
{% if icon_class %}<i class="nf {{ icon_class }}"></i>{% endif %}
2023-07-01 11:01:17 +03:00
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a>
</h2>
<abbr class="published" title="{{ article.date.isoformat() }}">[{{ article.locale_date }}]&nbsp;</abbr>
2023-07-01 11:01:17 +03:00
<span class="entry-summary">{{ article.summary }}</span>
</header>
</article>
{% endfor %}
{% include 'pagination.html' %}
</section><!-- /#content -->
{% endblock content %}