hugo: cache more partials

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2024-08-12 17:10:15 +02:00
parent 8ae71a65d2
commit 886a27ae8d
3 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@
{{ partial "guides-stepper.html" . }}
{{ end }}
<div class="block lg:hidden">
{{ partial "pagemeta.html" . }}
{{ partialCached "pagemeta.html" . . }}
<hr>
</div>
{{ .Content }}

View File

@ -1,6 +1,6 @@
<aside class="py-4 space-y-4">
{{ partial "github-links.html" . }}
<div id="TableOfContents">
{{ partial "pagemeta.html" . }}
{{ partialCached "pagemeta.html" . . }}
</div>
</aside>

View File

@ -42,7 +42,7 @@ Depends on site.Params.min_version_thresholds and i18n strings for component IDs
{{ end }}
{{- if $versionAboveThreshold }}
<div class="text-gray-light dark:text-gray-dark flex items-center gap-2">
<span class="icon-svg flex items-center">{{ partial "icon.html" "chevron_right" }}</span>
<span class="icon-svg flex items-center">{{ partialCached "icon.html" "chevron_right" "chevron_right" }}</span>
<span>Introduced in {{ T $component }} version
{{- if $link }}
{{ page.RenderString (fmt.Printf `[%s](%s)` $v $link) }}