1
0
Fork 0
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:
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 /* 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;
} }

View file

@ -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:&#160;</span> <span id="bc-label">You are here:&#160;</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 }}

View file

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

View file

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