scope differentiates destination over steps

This commit is contained in:
la Fleur 2020-11-16 19:23:11 +01:00
parent a8217f6241
commit 66d87f22b0
1 changed files with 4 additions and 5 deletions

View File

@ -1,6 +1,5 @@
{{- if .Parent.IsHome -}}
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{- else -}}
{{- partial "scope.html" .Parent }}
> <a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{- template "scoper" .Parent -}} {{ .Title }}
{{- define "scoper" -}}
{{- if not .IsHome -}}
{{- template "scoper" .Parent }}<a href="{{ .RelPermalink }}">{{ .Title }}</a> > {{ end -}}
{{- end -}}