From 230cc438b7523622c6b63ef478f0844ba9f9febf Mon Sep 17 00:00:00 2001 From: Xin Date: Sat, 21 Oct 2023 23:22:45 +0100 Subject: [PATCH] perf: cache sidebar footer --- layouts/partials/sidebar.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 1f8262f..cc07748 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -19,7 +19,7 @@ @@ -29,7 +29,7 @@ {{- else -}} {{ end -}} @@ -122,7 +122,7 @@ {{ end }} {{- end -}} -{{- define "sidebar-footer" -}} +{{- define "partials/sidebar/footer" -}} {{- range site.Menus.sidebar -}} {{- $name := or (T .Identifier) .Name -}} {{ if eq .Params.type "separator" }} @@ -150,12 +150,12 @@ > {{- .title -}} {{- with .context }} - {{- if or .RegularPages .Sections }}{{ partialCached "sidebear-collapsible-button" . }}{{ end -}} + {{- if or .RegularPages .Sections }}{{ partialCached "sidebar/collapsible-button" . }}{{ end -}} {{ end -}} {{- end -}} -{{- define "partials/sidebear-collapsible-button" -}} +{{- define "partials/sidebar/collapsible-button" -}}