diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 0fcb862..b637f01 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -35,7 +35,7 @@ {{- if ne $P.sidebar.display "remove" }} - {{- partial "sidebar" (dict "P" $P "Page" .Page "Scratch" .Scratch) }} + {{- partial "sidebar.html" . }} {{- end }} diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 0b4818c..e000d99 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -26,7 +26,7 @@ {{ partial "sidebar/overview" . }} - {{- if and .P.backTop.enable .P.backTop.sidebar }} + {{- if and .Site.Params.backTop.enable .Site.Params.backTop.sidebar }}