Skip to content

Commit

Permalink
Add breadcrumbs to custom secondary-header.html partial template
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
per1234 committed Nov 12, 2023
1 parent 1c40abc commit 9960096
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions site/layouts/partials/secondary-header.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<header style="margin-bottom: 15px;">
{{- partial "breadcrumbs.html" . }}
<h1 class="post-title">
{{- .Title }}
</h1>
Expand Down

0 comments on commit 9960096

Please sign in to comment.