scope with links to parents
This commit is contained in:
parent
008cf21abf
commit
a8217f6241
|
@ -10,7 +10,7 @@ a {
|
|||
}
|
||||
a.exposed, span.exposed {
|
||||
font-weight: bold;
|
||||
font-size: 1.3em;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
a:visited {
|
||||
}
|
||||
|
|
|
@ -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 -}}
|
||||
|
|
Loading…
Reference in New Issue