From 66d87f22b0ba1374156cb57b35d65ba0593d34cb Mon Sep 17 00:00:00 2001 From: lafleur Date: Mon, 16 Nov 2020 19:23:11 +0100 Subject: [PATCH] scope differentiates destination over steps --- layouts/partials/scope.html | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 -}}