theme: wildspace to death

This commit is contained in:
Sören Weber 2021-09-13 19:39:20 +02:00
parent 94fceae42d
commit 82b7477c0c
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589

View file

@ -81,31 +81,25 @@
{{- if $toc }} {{- if $toc }}
{{- partial "toc.html" . }} {{- partial "toc.html" . }}
{{- end }} {{- end }}
</div>
</div> </div>
</div>
{{- end }} {{- end }}
<div id="head-tags"> <div id="head-tags">
{{- partial "tags.html" . }} {{- partial "tags.html" . }}
</div> </div>
{{- if .Params.chapter }} {{- if .Params.chapter }}
<div id="chapter"> <div id="chapter">
{{- end }}
<main id="body-inner">
{{- if and (not .IsHome) (not .Params.chapter) }}
<h1>
{{ if eq .Kind "term" }}{{ .Data.Singular }} :: {{ end }}{{ .Title }}
</h1>
{{- end }} {{- end }}
<main id="body-inner">
{{- if and (not .IsHome) (not .Params.chapter) }}
<h1>{{ if eq .Kind "term" }}{{ .Data.Singular }} :: {{ end }}{{ .Title }}</h1>
{{- end }}
{{- define "breadcrumb" }} {{- define "breadcrumb" }}
{{- $parent := .page.Parent }} {{- $parent := .page.Parent }}
{{- $depth := add .depth 1 }} {{- $depth := add .depth 1 }}
{{- if $parent }} {{- if $parent }}
{{- template "breadcrumb" dict "page" $parent "depth" $depth }} {{- template "breadcrumb" dict "page" $parent "depth" $depth }}
{{- end }} {{- end }}
<li itemscope itemtype="https://schema.org/ListItem" itemprop="itemListElement"> <li itemscope itemtype="https://schema.org/ListItem" itemprop="itemListElement"><meta itemprop="position" content="{{ $depth }}" /><a itemprop="item" href="{{ .page.RelPermalink }}"{{if not .depth}} aria-disabled="true"{{end}}><span itemprop="name">{{ .page.Title }}</span></a>{{ if .depth }} > {{ end }}</li>
<meta itemprop="position" content="{{ $depth }}" />
<a itemprop="item" href="{{ .page.RelPermalink }}"{{if not .depth}} aria-disabled="true"{{end}}>
<span itemprop="name">{{ .page.Title }}</span>
</a>{{- if .depth }} > {{- end }}
</li>
{{- end }} {{- end }}