mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-07 20:08:54 +00:00
Version 1.0.2
This commit is contained in:
parent
b16252bf37
commit
33813da7ff
1 changed files with 3 additions and 15 deletions
|
@ -4,22 +4,10 @@
|
|||
{% set current_page = (p.active or p.activeChild) ? 'active' : '' %}
|
||||
{% if p.children.visible.count > 0 %}
|
||||
<li class="{{ current_page }}">
|
||||
{% if p.routable == false %}
|
||||
<a>
|
||||
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %}
|
||||
{{ p.menu }}
|
||||
<span>{{ p.menu }}{% if p.routable == false %} <i class="fa fa-angle-down"></i>{% endif %}</span>
|
||||
</a>
|
||||
{% elseif p.routable != false and p.children.count > 0 %}
|
||||
<a>
|
||||
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %}
|
||||
<span>{{ p.menu }}</span>
|
||||
</a>
|
||||
{% else %}
|
||||
<a href="{{p.url}}">
|
||||
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %}
|
||||
{{ p.menu }}
|
||||
</a>
|
||||
{% endif %}
|
||||
<ul>
|
||||
{{ macros.nav_loop(p) }}
|
||||
</ul>
|
||||
|
@ -28,9 +16,9 @@
|
|||
<li class="{{ current_page }}">
|
||||
<a href="{{ p.url }}">
|
||||
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %}
|
||||
{{ p.menu }}
|
||||
<span>{{ p.menu }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endmacro %}
|
||||
{% endmacro %}
|
||||
|
|
Loading…
Add table
Reference in a new issue