From 6fcf7d6c98bb1c424ccf7672c33f387116f7a873 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Fri, 24 Nov 2023 22:00:58 -0800 Subject: [PATCH] Move breadcrumbs to footer --- assets/css/main.css | 3 ++- layouts/partials/breadcrumblist.html | 2 +- layouts/partials/footer.html | 1 + layouts/partials/header.html | 1 - 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index 35c9b9b..33829f0 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -318,7 +318,8 @@ html { /* The nav has to be distant-enough from the top to make room for a * skip-link. The breadcrumbs also can't have their focus-outlines * overflow while CSS containment is enabled. */ - header > nav { + header > nav, + nav[itemprop="breadcrumb"] { padding: .75em 0 .25em; } diff --git a/layouts/partials/breadcrumblist.html b/layouts/partials/breadcrumblist.html index 657d322..8576915 100644 --- a/layouts/partials/breadcrumblist.html +++ b/layouts/partials/breadcrumblist.html @@ -1,6 +1,5 @@ {{/* All pages are one or two clicks from the navbar. If two clicks, add a breadcrumb list. */}} {{- if and (not .IsHome) (not .Parent.IsHome) -}} -
+
{{- end -}} {{ define "breadcrumbnav" }} {{ if .p1.Parent }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 055f9a3..87bbd2e 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,5 +1,6 @@