diff --git a/layouts/partials/scope.html b/layouts/partials/scope.html index 40b34bf..59ea95b 100644 --- a/layouts/partials/scope.html +++ b/layouts/partials/scope.html @@ -1,6 +1,5 @@ -{{- if .Parent.IsHome -}} - {{ .Title }} -{{- else -}} - {{- partial "scope.html" .Parent }} - > {{ .Title }} +{{- template "scoper" .Parent -}} {{ .Title }} +{{- define "scoper" -}} + {{- if not .IsHome -}} + {{- template "scoper" .Parent }}{{ .Title }} > {{ end -}} {{- end -}}