Add breadcrumb navigation

Disabled by default, and you probably want to keep it that way. It
doesn't fit in very well with the design currently. I just found it in
the Hugo docs and thought I might as well put it in for safe keeping.
This commit is contained in:
2021-10-01 20:54:18 -05:00
parent 1fe6a4c428
commit 157feeb814
4 changed files with 51 additions and 11 deletions

View File

@ -4,7 +4,20 @@
{{- partial "head.html" . -}}
<body>
{{ partial "header.html" . }}
<h2 class="header">
<a href="{{ "/" | relURL }}">{{ .Site.Title | markdownify }}</a>
</h2>
<nav id="navbar">
<a class="navbar-item" href="{{ "/" | relURL }}">Home</a>
{{ range .Site.Menus.main }}
<a class="navbar-item" href="{{ .URL }}">{{ .Name }}</a>
{{ end }}
</nav>
{{ if .Site.Params.breadcrumbnav }}
{{ partial "breadcrumb.html" . }}
{{ end }}
<div class="content">
{{- block "main" . }}