Skip to content

Commit 886a27a

Browse files
committed
hugo: cache more partials
Signed-off-by: David Karlsson <[email protected]>
1 parent 8ae71a6 commit 886a27a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

layouts/_default/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h1 data-pagefind-weight="10" class="scroll-mt-36">{{ . }}</h1>
1212
{{ partial "guides-stepper.html" . }}
1313
{{ end }}
1414
<div class="block lg:hidden">
15-
{{ partial "pagemeta.html" . }}
15+
{{ partialCached "pagemeta.html" . . }}
1616
<hr>
1717
</div>
1818
{{ .Content }}

layouts/partials/aside.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<aside class="py-4 space-y-4">
22
{{ partial "github-links.html" . }}
33
<div id="TableOfContents">
4-
{{ partial "pagemeta.html" . }}
4+
{{ partialCached "pagemeta.html" . . }}
55
</div>
66
</aside>

layouts/shortcodes/introduced.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
{{ end }}
4343
{{- if $versionAboveThreshold }}
4444
<div class="text-gray-light dark:text-gray-dark flex items-center gap-2">
45-
<span class="icon-svg flex items-center">{{ partial "icon.html" "chevron_right" }}</span>
45+
<span class="icon-svg flex items-center">{{ partialCached "icon.html" "chevron_right" "chevron_right" }}</span>
4646
<span>Introduced in {{ T $component }} version
4747
{{- if $link }}
4848
{{ page.RenderString (fmt.Printf `[%s](%s)` $v $link) }}

0 commit comments

Comments
 (0)