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 {
font-weight: bold;
font-size: 1.3em;
font-size: 1.1em;
}
a:visited {
}

View File

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