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