add scope partial
This commit is contained in:
parent
725478234e
commit
008cf21abf
|
@ -20,7 +20,7 @@
|
||||||
{{ range $.Site.Sections }}
|
{{ range $.Site.Sections }}
|
||||||
{{ if eq $currentPage.Section .Section }}
|
{{ if eq $currentPage.Section .Section }}
|
||||||
<span class="exposed">
|
<span class="exposed">
|
||||||
{{ .Title | markdownify }}
|
{{ partial "scope.html" $currentPage }}
|
||||||
</span>
|
</span>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<a href="{{ .Permalink }}">
|
<a href="{{ .Permalink }}">
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
{{- $pathList := split (trim (path.Dir .RelPermalink) "/") "/" -}}
|
||||||
|
{{- range $i, $val := $pathList -}}
|
||||||
|
{{- $val -}}
|
||||||
|
{{- if ne $i (sub (len $pathList) 1) }} > {{ end -}}
|
||||||
|
{{- end -}}
|
Loading…
Reference in New Issue