From 26a38cae6b49c585253a4469fdb2e0b15613750b Mon Sep 17 00:00:00 2001 From: Will Faught Date: Fri, 12 Jul 2024 16:11:10 -0700 Subject: [PATCH] Remove menu.html --- layouts/partials/paige/menu.html | 61 ------------------------- layouts/partials/paige/site-header.html | 60 +++++++++++++++++++++++- 2 files changed, 59 insertions(+), 62 deletions(-) delete mode 100644 layouts/partials/paige/menu.html diff --git a/layouts/partials/paige/menu.html b/layouts/partials/paige/menu.html deleted file mode 100644 index c6e526e3..00000000 --- a/layouts/partials/paige/menu.html +++ /dev/null @@ -1,61 +0,0 @@ -{{ $page := . }} - -{{ $basepath := path.Clean (urls.Parse (relLangURL "")).Path }} -{{ $links := false }} -{{ $pills := false }} -{{ $tabs := false }} -{{ $underline := false }} - -{{ if eq $basepath "/" }} - {{ $basepath = "" }} -{{ end }} - -{{ $pagepath := strings.TrimPrefix $basepath $page.RelPermalink }} - -{{ with $page.Param "paige.menu_style" }} - {{ if eq . "pills" }} - {{ $pills = true }} - {{ else if eq . "tabs" }} - {{ $tabs = true }} - {{ else if eq . "underline" }} - {{ $underline = true }} - {{ else }} - {{ $links = true }} - {{ end }} -{{ else }} - {{ $links = true }} -{{ end }} - -{{ with site.Menus.main }} - -{{ end }} diff --git a/layouts/partials/paige/site-header.html b/layouts/partials/paige/site-header.html index c63dd12a..794adc30 100644 --- a/layouts/partials/paige/site-header.html +++ b/layouts/partials/paige/site-header.html @@ -1,7 +1,32 @@ {{ $page := . }} +{{ $basepath := path.Clean (urls.Parse (relLangURL "")).Path }} {{ $description := $page.Param "paige.site_description" }} +{{ $links := false }} +{{ $pills := false }} +{{ $tabs := false }} {{ $title := $page.Param "paige.site_title" }} +{{ $underline := false }} + +{{ if eq $basepath "/" }} + {{ $basepath = "" }} +{{ end }} + +{{ $pagepath := strings.TrimPrefix $basepath $page.RelPermalink }} + +{{ with $page.Param "paige.menu_style" }} + {{ if eq . "pills" }} + {{ $pills = true }} + {{ else if eq . "tabs" }} + {{ $tabs = true }} + {{ else if eq . "underline" }} + {{ $underline = true }} + {{ else }} + {{ $links = true }} + {{ end }} +{{ else }} + {{ $links = true }} +{{ end }} {{ if or $page.Ancestors site.Menus.main }}
@@ -21,7 +46,40 @@ {{ end }} - {{ partial "paige/menu.html" $page }} + {{ with site.Menus.main }} + + {{ end }} + {{ partial "paige/breadcrumbs.html" . }} {{ if templates.Exists "partials/paige/header-last.html" }}