mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-01-15 20:13:43 +01:00
Some checks are pending
Spec / 🔎 Validate OpenAPI specifications (push) Waiting to run
Spec / 🔎 Check Event schema examples (push) Waiting to run
Spec / 🔎 Check OpenAPI definitions examples (push) Waiting to run
Spec / 🔎 Check JSON Schemas inline examples (push) Waiting to run
Spec / ⚙️ Calculate baseURL for later jobs (push) Waiting to run
Spec / 🐍 Build OpenAPI definitions (push) Blocked by required conditions
Spec / 📢 Run towncrier for changelog (push) Waiting to run
Spec / 📖 Build the spec (push) Blocked by required conditions
Spec / 🔎 Validate generated HTML (push) Blocked by required conditions
Spec / 📖 Build the historical backup spec (push) Blocked by required conditions
Spec / Create release (push) Blocked by required conditions
Spell Check / Spell Check with Typos (push) Waiting to run
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr> Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
36 lines
1,009 B
HTML
36 lines
1,009 B
HTML
{{/*
|
|
|
|
A copy of the breadcrumb.html partial in Docsy, modified to:
|
|
|
|
* show the breadcrumbs by default by removing the `td-breadcrumbs__single`
|
|
class
|
|
* omit breadcrumbs when this is the homepage
|
|
* otherwise, include the homepage in the breadcrumbs
|
|
|
|
*/}}
|
|
|
|
{{ if not .IsHome -}}
|
|
<nav aria-label="breadcrumb" class="td-breadcrumbs">
|
|
<ol class="breadcrumb">
|
|
{{- template "breadcrumbnav" (dict "p1" . "p2" .) }}
|
|
</ol>
|
|
</nav>
|
|
{{ end -}}
|
|
|
|
{{- define "breadcrumbnav" -}}
|
|
{{ if .p1.Parent -}}
|
|
{{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 ) -}}
|
|
{{ else if not .p1.IsHome -}}
|
|
{{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) -}}
|
|
{{ end -}}
|
|
{{ $isActive := eq .p1 .p2 }}
|
|
<li class="breadcrumb-item{{ if $isActive }} active{{ end }}"
|
|
{{- if $isActive }}aria-current="page"{{ end }}>
|
|
{{ if $isActive -}}
|
|
{{ .p1.LinkTitle -}}
|
|
{{ else -}}
|
|
<a href="{{ .p1.RelPermalink }}">{{ .p1.LinkTitle }}</a>
|
|
{{- end -}}
|
|
</li>
|
|
{{- end -}}
|