Automatické generování ikon v rolovací navigaci

remotes/1726908188925722499/search
Emil Miler 4 years ago
parent 261161a062
commit 0df00aeb54

@ -1,4 +1,7 @@
+++
title = "Zaměstnanci"
[extra]
icon = "♥"
+++

@ -25,7 +25,18 @@
<ul>
{% for subsection in section.subsections %}
{% set subsection = get_section(path=subsection) %}
<li><a href="{{ subsection.permalink }}"><span class="icon">&clubs;</span>{{ subsection.title }}</a></li>
<li>
<a href="{{ subsection.permalink }}">
<span class="icon">
{% if subsection.extra.icon %}
{{ subsection.extra.icon | safe }}
{% else %}
&clubs;
{% endif %}
</span>
{{ subsection.title }}
</a>
</li>
{% endfor %}
</ul>
{% endif %}

Loading…
Cancel
Save