feat: add partialCached to helper/image invocation
Using .RelPermalink as key for cache
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ $image := partial "helper/image" (dict "Context" . "Type" "taxonomy") }}
|
||||
{{ $image := partialCached "helper/image" (dict "Context" . "Type" "taxonomy") .RelPermalink }}
|
||||
{{ if $image.exists }}
|
||||
<div class="taxonomy-image">
|
||||
{{ if $image.resource }}
|
||||
|
||||
Reference in New Issue
Block a user