From 1713d5f8491c1861b1b81437eca9ae93d70c6cea Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 20 May 2023 08:27:55 -0700 Subject: [PATCH] Move site navigation to a partial It can now be shared between the index and site header templates. --- assets/styles/root/050_typography.css | 2 -- layouts/index.html | 11 +---------- layouts/partials/header.html | 8 +------- layouts/partials/site_nav.html | 9 +++++++++ 4 files changed, 11 insertions(+), 19 deletions(-) create mode 100644 layouts/partials/site_nav.html diff --git a/assets/styles/root/050_typography.css b/assets/styles/root/050_typography.css index c5ef537..3f14f30 100644 --- a/assets/styles/root/050_typography.css +++ b/assets/styles/root/050_typography.css @@ -158,8 +158,6 @@ font-size: clamp(var(--font-size-min), var(--font-size-scale-factor), var(--font-size-max)); } - main#landing p { line-height: var(--landing-line-height); } - nav.bulleted > li:first-child::before { color: var(--color); } nav.bulleted > li::before { color: var(--heading-color); } diff --git a/layouts/index.html b/layouts/index.html index a3cca08..7aa8810 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -5,14 +5,5 @@
{{ .Content }}
- {{- with site.Menus.main -}} - {{- $url := $.RelPermalink -}} - - {{ end }} - - + {{ partial "site_nav.html" . }} {{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index c4a3158..fa4bdd0 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -5,13 +5,7 @@

{{ partial "site_name.html" site.Params.shortTitle }}

- + {{ partial "site_nav.html" . }}