From 329d426d86a70a85677160fbcd35d40cef0bd535 Mon Sep 17 00:00:00 2001 From: Nikolay Yakimov Date: Tue, 14 Mar 2017 02:55:59 +0300 Subject: [PATCH] More compatibility issues --- layouts/_default/list.html | 1 + layouts/partials/footer.html | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index e76566ec64..8d1fdab11d 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -4,6 +4,7 @@ {{ else }} {{ with (index (index .Site.Sections .Section) 0) }} {{ .Page.Content }} +{{ $.Scratch.Set "uniqueId" .Page.UniqueID }} {{ end }} {{ end }} {{ partial "footer.html" . }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 40bbb5f6e5..76d197f506 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -6,6 +6,7 @@ + {{ if $.Site.Params.autoNav }} {{ $.Scratch.Set "_sectionpages" (slice) }} {{ if $.Site.Params.menu }} {{ range $sname := $.Site.Params.menu }} @@ -26,11 +27,14 @@ {{ $.Scratch.Add "_allpages" .Page }} {{ end }} {{ end }} - {{ $allpages := $.Scratch.Get "_allpages" }} + {{ end }}