From e62ccfd0850d86f5a5f3689ce935d1b6a822a110 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Mon, 11 Oct 2021 21:35:16 -0500 Subject: [PATCH] Remove partialCached for now because I'm worried of it causing issues It didn't last very long. Speed isn't really a concern currently since my sites all generate in ~50ms (on my computer, at least). --- layouts/_default/_markup/render-heading.html | 2 +- layouts/_default/baseof.html | 4 ++-- layouts/_default/list.html | 8 ++++---- layouts/_default/single.html | 2 +- layouts/_default/summary.html | 4 ++-- layouts/partials/post-metadata.html | 14 +++++++------- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html index 00c4802..3644bda 100644 --- a/layouts/_default/_markup/render-heading.html +++ b/layouts/_default/_markup/render-heading.html @@ -2,7 +2,7 @@ {{ .Text | safeHTML }} - {{ partialCached "icon.html" "link" "link" }} + {{ partial "icon.html" "link" }} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 07e31e9..693059e 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,11 +1,11 @@ -{{ partialCached "credit.html" . }} +{{ partial "credit.html" }} {{- partial "head.html" . -}}
- {{ partialCached "top.html" . }} + {{ partial "top.html" . }}
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 0a416a9..d7b10e3 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,23 +1,23 @@ {{ define "main" }} {{ if or (eq .Kind "term") (eq .Kind "taxonomy") }}

- {{ partialCached "icon.html" "filter" "filter" }} + {{ partial "icon.html" "filter" }} {{ i18n "filtering_for" .Title }} {{ if eq .Kind "term" }} {{ with .OutputFormats.Get "rss" }} - {{ partialCached "icon.html" "rss" "rss" }} + {{ partial "icon.html" "rss" }} {{ end }} {{ end }}

{{ else }}

- {{ with .Params.icon }}{{ partialCached "icon.html" . . }}{{ end }} + {{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }} {{ .Title | markdownify }} {{ with .OutputFormats.Get "rss" }} - {{ partialCached "icon.html" "rss" "rss" }} + {{ partial "icon.html" "rss" }} {{ end }}

diff --git a/layouts/_default/single.html b/layouts/_default/single.html index a99b41c..990d118 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,7 +2,7 @@

{{ .Title | markdownify }} - {{ if .Draft }}{{ partialCached "icon.html" "edit" "edit" }}{{ end }} + {{ if .Draft }}{{ partial "icon.html" "edit" }}{{ end }}

diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index 078be8d..e50e651 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -1,8 +1,8 @@

- {{ with .Parent.Params.icon }}{{ partialCached "icon.html" . . }}{{ end }} + {{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }} {{ .Title | markdownify }} - {{ if .Draft }}{{ partialCached "icon.html" "edit" "edit" }}{{ end }} + {{ if .Draft }}{{ partial "icon.html" "edit" }}{{ end }}

{{ partial "post-metadata.html" . }} diff --git a/layouts/partials/post-metadata.html b/layouts/partials/post-metadata.html index 6ecb1ca..8659695 100644 --- a/layouts/partials/post-metadata.html +++ b/layouts/partials/post-metadata.html @@ -2,7 +2,7 @@