From 12900798d554acf784ba54a2e04b7323f0222545 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=A1=E6=A2=A6=E6=98=9F=E5=B0=98?= Date: Wed, 1 Jun 2022 14:26:52 +0800 Subject: [PATCH] :building_construction: Finish the widgets attributes redesign. --- layouts/_default/baseof.html | 2 +- layouts/partials/widgets.html | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) 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 }}