summaryrefslogtreecommitdiff
path: root/templates/partials/navigation.html.twig
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2023-12-14 01:22:21 -0500
committersowgro <tpoke.ferrari@gmail.com>2023-12-14 01:22:21 -0500
commit606af5568e839f8bc6651ac1d43f711f00b1b3aa (patch)
treef77899fc48b17e71e0eb99137e0a778ad41e7e77 /templates/partials/navigation.html.twig
parent07b67eee74df0914754b760ab1178f1d2f374bbd (diff)
downloadgrav-sowtheme-606af5568e839f8bc6651ac1d43f711f00b1b3aa.tar.gz
grav-sowtheme-606af5568e839f8bc6651ac1d43f711f00b1b3aa.tar.bz2
grav-sowtheme-606af5568e839f8bc6651ac1d43f711f00b1b3aa.zip
theme v4
Diffstat (limited to 'templates/partials/navigation.html.twig')
-rw-r--r--templates/partials/navigation.html.twig61
1 files changed, 15 insertions, 46 deletions
diff --git a/templates/partials/navigation.html.twig b/templates/partials/navigation.html.twig
index 28df6aa..4426c8c 100644
--- a/templates/partials/navigation.html.twig
+++ b/templates/partials/navigation.html.twig
@@ -1,47 +1,16 @@
-{% macro loop(page) %}
- {% for p in page.children.visible %}
- {% set current_page = (p.active or p.activeChild) ? 'selected' : '' %}
- {% if p.children.visible.count > 0 %}
- <li class="has-children {{ current_page|e }}">
- <a href="{{ p.url|e }}">
- {% if p.header.icon %}<i class="fa fa-{{ p.header.icon|e }}"></i>{% endif %}
- {{ p.menu|e }}
- </a>
- <ul>
- {{ _self.loop(p) }}
- </ul>
- </li>
- {% else %}
- <li class="{{ current_page|e }}">
- <a href="{{ p.url|e }}">
- {% if p.header.icon %}<i class="fa fa-{{ p.header.icon|e }}"></i>{% endif %}
- {{ p.menu|e }}
- </a>
- </li>
- {% endif %}
- {% endfor %}
-{% endmacro %}
-
-<ul>
- {% if config.theme.dropdown.enabled %}
- {{ _self.loop(pages) }}
- {% else %}
- {% for page in pages.children.visible %}
- {% set current_page = (page.active or page.activeChild) ? 'selected' : '' %}
- <li class="{{ current_page|e }}">
- <a href="{{ page.url|e }}">
- {% if page.header.icon %}<i class="fa fa-{{ page.header.icon|e }}"></i>{% endif %}
- {{ page.menu|e }}
- </a>
- </li>
- {% endfor %}
+<div class=links>
+ {% if page.parent.url != "/" %}
+ <a class="anim3" href="{{ page.parent.url }}">
+ <div class="roundedButton">
+ <span class="icon">arrow_back</span>
+ <span>Back</span>
+ </div>
+ </a>
{% endif %}
- {% for mitem in site.menu %}
- <li>
- <a href="{{ mitem.url|e }}">
- {% if mitem.icon %}<i class="fa fa-{{ mitem.icon|e }}"></i>{% endif %}
- {{ mitem.text|e }}
- </a>
- </li>
- {% endfor %}
-</ul>
+ <a class="anim4" href="/">
+ <div class="roundedButton">
+ <span class="icon">home</span>
+ <span>Home</span>
+ </div>
+ </a>
+</div>