{{- 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 }}