mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 12:52:10 +00:00
Move breadcrumbs to footer
This commit is contained in:
parent
4057781ec5
commit
6fcf7d6c98
4 changed files with 4 additions and 3 deletions
|
@ -318,7 +318,8 @@ html {
|
|||
/* The nav has to be distant-enough from the top to make room for a
|
||||
* skip-link. The breadcrumbs also can't have their focus-outlines
|
||||
* overflow while CSS containment is enabled. */
|
||||
header > nav {
|
||||
header > nav,
|
||||
nav[itemprop="breadcrumb"] {
|
||||
padding: .75em 0 .25em;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{{/* All pages are one or two clicks from the navbar. If two clicks, add a breadcrumb list. */}}
|
||||
{{- if and (not .IsHome) (not .Parent.IsHome) -}}
|
||||
<hr />
|
||||
<nav aria-labelledby="bc-label"
|
||||
itemscope="" itemprop="breadcrumb" itemtype="https://schema.org/BreadcrumbList">
|
||||
<span id="bc-label">You are here: </span>
|
||||
|
@ -8,6 +7,7 @@
|
|||
{{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
|
||||
</ol>
|
||||
</nav>
|
||||
<hr />
|
||||
{{- end -}}
|
||||
{{ define "breadcrumbnav" }}
|
||||
{{ if .p1.Parent }}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<hr />
|
||||
<footer>
|
||||
{{ partial "breadcrumblist.html" . }}
|
||||
<p>
|
||||
Copyright <time itemprop="copyrightYear" datetime="{{now.Year}}">{{now.Year}}</time> {{ partial "indieweb-author.html" -}}
|
||||
</p>
|
||||
|
|
|
@ -36,5 +36,4 @@
|
|||
{{- end }}
|
||||
</ul>
|
||||
</nav>
|
||||
{{ partial "breadcrumblist.html" . }}
|
||||
</header>
|
||||
|
|
Loading…
Reference in a new issue