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