diff --git a/templates/_partials/footer.twig b/templates/_partials/footer.twig index 6db58ed..829c7cd 100644 --- a/templates/_partials/footer.twig +++ b/templates/_partials/footer.twig @@ -16,6 +16,8 @@ name: 'logo-mark', size: 'lg', }) }} + + {{ currentSite.name }} - Home diff --git a/templates/_partials/header.twig b/templates/_partials/header.twig index a9ca191..f1545d1 100644 --- a/templates/_partials/header.twig +++ b/templates/_partials/header.twig @@ -17,35 +17,11 @@ 'border-b border-neutral-200 bg-neutral-100', 'mdd:sticky mdd:top-0 mdd:z-50 mdd:bg-white mdd:shadow-md', ) }}"> -
+ {{ include('_partials/nav-desktop.twig', { + nodes: primaryNavigation, + }) }} - {# The logo changes when you open the mobile nav. Just because it's rad. #} - - {{ icon({ - name: 'logo-primary', - size: 'none', - class: 'w-[186px] h-32', - }) }} - - {{ currentSite.name }} - Home - - - {{ include('_partials/nav-desktop.twig', { - class: 'hidden md:block', - nodes: primaryNavigation, - }) }} - - {{ include('_partials/nav-mobile.twig', { - class: 'md:hidden', - nodes: primaryNavigation, - }) }} -
+ {{ include('_partials/nav-mobile.twig', { + nodes: primaryNavigation, + }) }} diff --git a/templates/_partials/nav-desktop.twig b/templates/_partials/nav-desktop.twig index 3308dd3..cb12f77 100644 --- a/templates/_partials/nav-desktop.twig +++ b/templates/_partials/nav-desktop.twig @@ -1,9 +1,5 @@ {% from "_macros/icon.twig" import icon %} - -{# @var string|null class #} -{% set class = class ?? null %} - {# @var \Illuminate\Support\Collection nodes #} {% set nodes = nodes ?? collect([]) %} @@ -38,92 +34,106 @@ {% endmacro %} + {% if grandchildren.count() %} + + {% endif %} + + {% endfor %} + + {% endif %} + + {% endfor %} + + diff --git a/templates/_partials/nav-mobile.twig b/templates/_partials/nav-mobile.twig index 347c96a..175a3a6 100644 --- a/templates/_partials/nav-mobile.twig +++ b/templates/_partials/nav-mobile.twig @@ -1,9 +1,5 @@ {% from "_macros/icon.twig" import icon %} - -{# @var string|null class #} -{% set class = class ?? null %} - {# @var \Illuminate\Support\Collection nodes #} {% set nodes = nodes ?? collect([]) %} @@ -34,7 +30,8 @@ {% endmacro %}