From 99600966425be3f28074a18d30f23a82d0707e9a Mon Sep 17 00:00:00 2001 From: per1234 Date: Sat, 11 Nov 2023 14:45:43 -0800 Subject: [PATCH 1/2] Add breadcrumbs to custom secondary-header.html partial template The breadcrumbs feature of the hugo-PaperMod theme is implemented in a partial template. That partial is referenced in the page templates provided by the theme. Those page templates are targeted to a blog type of website and so are worthless for this project so this project uses custom page templates exclusively. It is required to include the breadcrumbs code in the custom templates in order for the site to have breadcrumbs. This is done as part of a custom "secondary-header.html" partial template, which is referenced by all the project's individual page templates. --- site/layouts/partials/secondary-header.html | 1 + 1 file changed, 1 insertion(+) diff --git a/site/layouts/partials/secondary-header.html b/site/layouts/partials/secondary-header.html index f848162..adf5a3b 100644 --- a/site/layouts/partials/secondary-header.html +++ b/site/layouts/partials/secondary-header.html @@ -1,4 +1,5 @@
+ {{- partial "breadcrumbs.html" . }}

{{- .Title }}

From f208ae8ae8a11dd0ac41bb2215d4b964379f1b89 Mon Sep 17 00:00:00 2001 From: per1234 Date: Wed, 8 Nov 2023 20:53:36 -0800 Subject: [PATCH 2/2] Correct `layout` values in site content front matter The value in the `layout` field of the website content source file front matter must match the name of the layout template file. These pages were incorrectly configured to use a layout named "page" even though no such layout exists. They are hereby changed to use the "basic" layout as originally intended. --- site/content/about/_index.md | 2 +- site/content/glossary/_index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/site/content/about/_index.md b/site/content/about/_index.md index d969755..d12cbc9 100644 --- a/site/content/about/_index.md +++ b/site/content/about/_index.md @@ -1,7 +1,7 @@ --- title: About breadcrumb: about -layout: page +layout: basic page-type: static --- diff --git a/site/content/glossary/_index.md b/site/content/glossary/_index.md index 2461b70..bd0c684 100644 --- a/site/content/glossary/_index.md +++ b/site/content/glossary/_index.md @@ -1,7 +1,7 @@ --- title: Glossary breadcrumb: glossary -layout: page +layout: basic page-type: static ---