mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-06-12 17:57:28 -05:00
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:
@ -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" . }}
|
||||
|
Reference in New Issue
Block a user