Automatické generování ikon v rolovací navigaci

remotes/1722757888236843906/tmp_refs/heads/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