1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-10 00:12:09 +00:00

Move breadcrumbs to footer

This commit is contained in:
Rohan Kumar 2023-11-24 22:00:58 -08:00
parent 4057781ec5
commit 6fcf7d6c98
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
4 changed files with 4 additions and 3 deletions

View file

@ -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;
}

View file

@ -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:&#160;</span>
@ -8,6 +7,7 @@
{{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
</ol>
</nav>
<hr />
{{- end -}}
{{ define "breadcrumbnav" }}
{{ if .p1.Parent }}

View file

@ -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>

View file

@ -36,5 +36,4 @@
{{- end }}
</ul>
</nav>
{{ partial "breadcrumblist.html" . }}
</header>