diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index b637f01..2af42a5 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -39,7 +39,7 @@ {{- end }} - {{ partial "widgets" (dict "P" $P) }} + {{ partial "widgets.html" . }}
{{- block "main" (dict "P" $P "Page" .Page "Paginate" (.Paginate (where .Site.RegularPages "Section" "in" .Site.Params.mainSections)) "Scratch" .Scratch) }}{{- end }} diff --git a/layouts/partials/widgets.html b/layouts/partials/widgets.html index 7ef3bf8..327c075 100644 --- a/layouts/partials/widgets.html +++ b/layouts/partials/widgets.html @@ -1,24 +1,23 @@ -{{- if and .P.backTop.enable (not .P.backTop.sidebar) }} +{{- if and .Site.Params.backTop.enable (not .Site.Params.backTop.sidebar) }}
0%
{{- end }} -{{- if .P.readingProgress.enable }} +{{- if .Site.Params.readingProgress.enable }}
{{- end }} -{{- if .P.bookmark.enable }} +{{- if .Site.Params.bookmark.enable }} {{- end }} -{{- with .P.githubBanner }} +{{- with .Site.Params.githubBanner }} {{- if .enable }} - {{- end }} {{- end }}