From 7b852726bc497a7ce0fb9047093c25a037703b41 Mon Sep 17 00:00:00 2001 From: JCornelison Date: Tue, 24 Sep 2024 11:13:33 -0700 Subject: [PATCH] partial can't be cached... --- themes/eoconline/layouts/insights/list.html | 7 ++----- .../layouts/partials/widgets/widget-wrapper.html | 4 ---- .../layouts/partials/widgets/widget-wrapperCT.html | 10 ---------- .../layouts/partials/widgets/widget-wrapperTK.html | 10 ---------- themes/eoconline/layouts/resources2/list.html | 7 ++----- 5 files changed, 4 insertions(+), 34 deletions(-) delete mode 100644 themes/eoconline/layouts/partials/widgets/widget-wrapperCT.html delete mode 100644 themes/eoconline/layouts/partials/widgets/widget-wrapperTK.html diff --git a/themes/eoconline/layouts/insights/list.html b/themes/eoconline/layouts/insights/list.html index 1649a80..ae9a313 100644 --- a/themes/eoconline/layouts/insights/list.html +++ b/themes/eoconline/layouts/insights/list.html @@ -34,13 +34,10 @@ {{ partialCached "calendar" (dict "context" . "fromYear" $fromYear "fromMonth" $fromMonth "toYear" (now.Format "2006") "toMonth" (now.Format "1") "pages" .Site.Pages) }} - + {{ $widget:= site.Params.widgets.sidebarCT }} - - - - {{ partialCached "widgets/widget-wrapperCT" ( dict "Scope" . "Widgets" $widget ) }} + {{ partial "widgets/widget-wrapper" ( dict "Scope" . "Widgets" $widget ) }} diff --git a/themes/eoconline/layouts/partials/widgets/widget-wrapper.html b/themes/eoconline/layouts/partials/widgets/widget-wrapper.html index 76de66d..cbca501 100644 --- a/themes/eoconline/layouts/partials/widgets/widget-wrapper.html +++ b/themes/eoconline/layouts/partials/widgets/widget-wrapper.html @@ -1,10 +1,6 @@ {{ $scope := .context }} {{ $widget := .Widgets }} - - - {{ range $widget }} - {{ partial ( print "widgets/" . ) $scope }} {{ end }} diff --git a/themes/eoconline/layouts/partials/widgets/widget-wrapperCT.html b/themes/eoconline/layouts/partials/widgets/widget-wrapperCT.html deleted file mode 100644 index 76de66d..0000000 --- a/themes/eoconline/layouts/partials/widgets/widget-wrapperCT.html +++ /dev/null @@ -1,10 +0,0 @@ -{{ $scope := .context }} -{{ $widget := .Widgets }} - - - - -{{ range $widget }} - - {{ partial ( print "widgets/" . ) $scope }} -{{ end }} diff --git a/themes/eoconline/layouts/partials/widgets/widget-wrapperTK.html b/themes/eoconline/layouts/partials/widgets/widget-wrapperTK.html deleted file mode 100644 index 76de66d..0000000 --- a/themes/eoconline/layouts/partials/widgets/widget-wrapperTK.html +++ /dev/null @@ -1,10 +0,0 @@ -{{ $scope := .context }} -{{ $widget := .Widgets }} - - - - -{{ range $widget }} - - {{ partial ( print "widgets/" . ) $scope }} -{{ end }} diff --git a/themes/eoconline/layouts/resources2/list.html b/themes/eoconline/layouts/resources2/list.html index 523550a..3454bb4 100644 --- a/themes/eoconline/layouts/resources2/list.html +++ b/themes/eoconline/layouts/resources2/list.html @@ -24,13 +24,10 @@
- + {{ $widget:= site.Params.widgets.sidebarTK }} - - - - {{ partialCached "widgets/widget-wrapperTK" ( dict "Scope" . "Widgets" $widget ) }} + {{ partial "widgets/widget-wrapper" ( dict "Scope" . "Widgets" $widget ) }}