From 763a274635c619a552f3e4d9b0ed5cf34dca0d1c Mon Sep 17 00:00:00 2001 From: Marcell Mars Date: Thu, 10 Dec 2020 01:58:18 +0100 Subject: [PATCH] more than one category in rightcolumn --- layouts/partials/singlebody.html | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/layouts/partials/singlebody.html b/layouts/partials/singlebody.html index c868a2d..71803ee 100644 --- a/layouts/partials/singlebody.html +++ b/layouts/partials/singlebody.html @@ -8,7 +8,7 @@ {{ $currentFile := (printf "/%s" .File) }} {{ $scratch := $s.Get $currentFile }} -
{{ substr $currentDir 0 -1 }}: {{ substr .Title 0 1 }}{{ substr .Title 1 }}
+
{{ substr $currentDir 0 -1 }}⁄{{ substr .Title 0 1 }}{{ substr .Title 1 }}
@@ -17,46 +17,59 @@ {{ end }}
+ {{- range $k, $v := .Page.Params.authors -}} + {{- with $.GetPage (printf "/author/%s" $v) -}} + {{- with not $k -}} +
+
authors⁄
+
+ {{- end -}} + + {{- end -}} + {{- end -}} + {{- with .Page.Params.authors -}}
{{- end -}} + {{ if in .Page.Site.Params.sandpointsMentionedIn (substr $currentDir 0 -1) }}
{{ with $scratch.backlinks }} - mentioned in⁄ +
mentioned in⁄
{{ end }} -
{{ range $scratch.backlinks }} {{ end }} +
{{ end }} {{ if and (not (eq $scratch.depth "crust")) $scratch.has_children }}
{{ with $scratch.has }} - has {{ $scratch.has }}⁄ +
has {{ $scratch.has }}⁄
{{ end }} -
{{ range $scratch.has_children }} {{ end }} +
{{ end }} {{ if eq $scratch.depth "crust" }}
- in {{ index $scratch.in 1 }}⁄ -
+
in {{ index $scratch.in 1 }}⁄
{{ range $scratch.is_in }} {{ end }} +
{{ end }} -