mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-28 14:18:53 +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' : '' %}
|
{% set current_page = (p.active or p.activeChild) ? 'active' : '' %}
|
||||||
{% if p.children.visible.count > 0 %}
|
{% if p.children.visible.count > 0 %}
|
||||||
<li class="{{ current_page }}">
|
<li class="{{ current_page }}">
|
||||||
{% if p.routable == false %}
|
|
||||||
<a>
|
<a>
|
||||||
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %}
|
{% 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>
|
</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>
|
<ul>
|
||||||
{{ macros.nav_loop(p) }}
|
{{ macros.nav_loop(p) }}
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -28,7 +16,7 @@
|
||||||
<li class="{{ current_page }}">
|
<li class="{{ current_page }}">
|
||||||
<a href="{{ p.url }}">
|
<a href="{{ p.url }}">
|
||||||
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %}
|
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %}
|
||||||
{{ p.menu }}
|
<span>{{ p.menu }}</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue