bobatheme/layouts/_default/baseof.html
BBaoVanC 157feeb814
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.
2021-10-01 20:54:18 -05:00

32 lines
755 B
HTML

{{ partial "credit.html" }}
<!DOCTYPE html>
<html lang="en">
{{- partial "head.html" . -}}
<body>
<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" . }}
{{ .Content }}
{{- end }}
</div>
{{- partial "footer.html" . -}}
</body>
</html>