From 82b7477c0c1bb1d89f4fe6a3bed6fa1a9366ce69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Mon, 13 Sep 2021 19:39:20 +0200 Subject: [PATCH] theme: wildspace to death --- layouts/partials/header.html | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index d89795802e..8399bf1b52 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -81,31 +81,25 @@ {{- if $toc }} {{- partial "toc.html" . }} {{- end }} + - {{- end }} -
+
{{- partial "tags.html" . }} -
- {{- if .Params.chapter }} -
- {{- end }} -
- {{- if and (not .IsHome) (not .Params.chapter) }} -

- {{ if eq .Kind "term" }}{{ .Data.Singular }} :: {{ end }}{{ .Title }} -

+
+ {{- if .Params.chapter }} +
{{- end }} +
+ {{- if and (not .IsHome) (not .Params.chapter) }} +

{{ if eq .Kind "term" }}{{ .Data.Singular }} :: {{ end }}{{ .Title }}

+ {{- end }} + {{- define "breadcrumb" }} {{- $parent := .page.Parent }} {{- $depth := add .depth 1 }} {{- if $parent }} {{- template "breadcrumb" dict "page" $parent "depth" $depth }} {{- end }} -
  • - - - {{ .page.Title }} - {{- if .depth }} > {{- end }} -
  • +
  • {{ .page.Title }}{{ if .depth }} > {{ end }}
  • {{- end }} \ No newline at end of file