add symbols for categories
This commit is contained in:
parent
fe6f41cfd6
commit
a6dc056789
16 changed files with 100 additions and 26 deletions
|
|
@ -4,11 +4,26 @@
|
|||
{% block content_title %}
|
||||
{% 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'
|
||||
} %}
|
||||
|
||||
{% for article in articles_page.object_list %}
|
||||
|
||||
<article class="hentry">
|
||||
<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>
|
||||
<abbr class="published" title="{{ article.date.isoformat() }}">[{{ article.locale_date }}] </abbr>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue