+ +
+ {{ partial "scope.html" . }} +
+ +
{{- with .Content -}}
{{ . }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index bb01a60..298586c 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,4 +1,3 @@ -{{ $currentPage := . }}
{{ with resources.Get "img/titre-blanc.png" }} @@ -17,9 +16,12 @@
- diff --git a/layouts/partials/scope.html b/layouts/partials/scope.html index 3fcf9c5..2155817 100644 --- a/layouts/partials/scope.html +++ b/layouts/partials/scope.html @@ -1,6 +1,5 @@ - - {{- template "scoper" .Parent -}} {{ .Title }} - +{{- template "scoper" .Parent -}}{{ .Title }} + {{- define "scoper" -}} {{- if not .IsHome -}} {{- template "scoper" .Parent }}{{ .Title }} > {{ end -}}