add symbols for categories
This commit is contained in:
parent
fe6f41cfd6
commit
a6dc056789
16 changed files with 100 additions and 26 deletions
|
|
@ -1,8 +1,27 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% 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 content %}
|
||||
<ul>
|
||||
|
||||
{% for category, articles in categories %}
|
||||
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a></li>
|
||||
<li>
|
||||
{% set icon_class = icon_map.get(category|string|lower) %}
|
||||
{% if icon_class %}<i class="nf {{ icon_class }}"></i>{% endif %}
|
||||
<a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue