We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc51904 commit c92d66aCopy full SHA for c92d66a
layouts/partials/hugopress/functions/render-hooks.html
@@ -15,7 +15,9 @@
15
{{- warnf "[hugopress] [%s] rendering hook: %q." .module .name }}
16
{{- end }}
17
{{- if .cacheable }}
18
- {{- if ne .cache_param_key "" }}
+ {{- if ne .cache_key nil }}
19
+ {{- partialCached .partial $ctx (index (apply (slice 0) .cache_key) 0) }}
20
+ {{- else if ne .cache_param_key nil }}
21
{{- partialCached .partial $ctx (index $page.Params .cache_param_key) }}
22
{{- else }}
23
{{- partialCached .partial $ctx }}
0 commit comments