scope with links to parents
This commit is contained in:
parent
008cf21abf
commit
a8217f6241
|
@ -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 {
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 -}}
|
||||||
|
|
Loading…
Reference in New Issue