scope with links to parents

This commit is contained in:
la Fleur 2020-11-16 17:50:05 +01:00
parent 008cf21abf
commit a8217f6241
2 changed files with 6 additions and 5 deletions

View File

@ -10,7 +10,7 @@ a {
} }
a.exposed, span.exposed { a.exposed, span.exposed {
font-weight: bold; font-weight: bold;
font-size: 1.3em; font-size: 1.1em;
} }
a:visited { a:visited {
} }

View File

@ -1,5 +1,6 @@
{{- $pathList := split (trim (path.Dir .RelPermalink) "/") "/" -}} {{- if .Parent.IsHome -}}
{{- range $i, $val := $pathList -}} <a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{- $val -}} {{- else -}}
{{- if ne $i (sub (len $pathList) 1) }} > {{ end -}} {{- partial "scope.html" .Parent }}
> <a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{- end -}} {{- end -}}