Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Cai <jimmehcai@gmail.com>2020-09-17 22:52:06 +0300
committerJimmy Cai <jimmehcai@gmail.com>2020-09-17 22:52:06 +0300
commitcf6502c31140214236ea7f8578ccd6ad9d2b6d2c (patch)
treed81582dc3adbf3ffd0d546613646114760164359 /layouts/partials/article/components/details.html
parent9a64b7a6f10c8e9652ad3ff3dff92f35ceef6ffb (diff)
feat: add partialCached to helper/image invocation
Using .RelPermalink as key for cache
Diffstat (limited to 'layouts/partials/article/components/details.html')
-rw-r--r--layouts/partials/article/components/details.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html
index 1b776be..89d5554 100644
--- a/layouts/partials/article/components/details.html
+++ b/layouts/partials/article/components/details.html
@@ -1,4 +1,4 @@
-{{ $image := partial "helper/image" (dict "Context" .) }}
+{{ $image := partialCached "helper/image" (dict "Context" .) .RelPermalink }}
{{ $context := . }}
<div class="article-details">
{{ with $categories := .Params.categories }}