mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +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
|
/* 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
|
* skip-link. The breadcrumbs also can't have their focus-outlines
|
||||||
* overflow while CSS containment is enabled. */
|
* overflow while CSS containment is enabled. */
|
||||||
header > nav {
|
header > nav,
|
||||||
|
nav[itemprop="breadcrumb"] {
|
||||||
padding: .75em 0 .25em;
|
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. */}}
|
{{/* All pages are one or two clicks from the navbar. If two clicks, add a breadcrumb list. */}}
|
||||||
{{- if and (not .IsHome) (not .Parent.IsHome) -}}
|
{{- if and (not .IsHome) (not .Parent.IsHome) -}}
|
||||||
<hr />
|
|
||||||
<nav aria-labelledby="bc-label"
|
<nav aria-labelledby="bc-label"
|
||||||
itemscope="" itemprop="breadcrumb" itemtype="https://schema.org/BreadcrumbList">
|
itemscope="" itemprop="breadcrumb" itemtype="https://schema.org/BreadcrumbList">
|
||||||
<span id="bc-label">You are here: </span>
|
<span id="bc-label">You are here: </span>
|
||||||
|
@ -8,6 +7,7 @@
|
||||||
{{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
|
{{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
|
||||||
</ol>
|
</ol>
|
||||||
</nav>
|
</nav>
|
||||||
|
<hr />
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{ define "breadcrumbnav" }}
|
{{ define "breadcrumbnav" }}
|
||||||
{{ if .p1.Parent }}
|
{{ if .p1.Parent }}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<hr />
|
<hr />
|
||||||
<footer>
|
<footer>
|
||||||
|
{{ partial "breadcrumblist.html" . }}
|
||||||
<p>
|
<p>
|
||||||
Copyright <time itemprop="copyrightYear" datetime="{{now.Year}}">{{now.Year}}</time> {{ partial "indieweb-author.html" -}}
|
Copyright <time itemprop="copyrightYear" datetime="{{now.Year}}">{{now.Year}}</time> {{ partial "indieweb-author.html" -}}
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -36,5 +36,4 @@
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
{{ partial "breadcrumblist.html" . }}
|
|
||||||
</header>
|
</header>
|
||||||
|
|
Loading…
Reference in a new issue