fix: image caching cache key

This commit is contained in:
Ben Goldsworthy 2025-07-09 21:22:16 +02:00
parent fa3c57be79
commit 3a2a6482da
No known key found for this signature in database
6 changed files with 15 additions and 12 deletions

View file

@ -5,12 +5,14 @@
@params link URI or Page Resource to wrap image in. Optional.
@params rel Force relationship value. Optional.
@params raw Force raw image only. Optional.
@params cacheBust Force cache busting. Optional.
-->
<!-- Variable assignment -->
{{- $src := $.Page.Resources.GetMatch ( .Get "src" ) -}}
{{- $raw := default false ( .Get "raw" ) -}}
{{- $cacheBust := default false ( .Get "cacheBust" ) -}}
{{- $linkedResource := $.Page.Resources.GetMatch ( .Get "link" ) -}}
{{- $valid_rel_values := partialCached "util/get_valid_rel_values.html" . -}}
@ -39,7 +41,7 @@
<a href="{{- .Get "link" -}}">
{{- end -}}
{{- end -}}
{{- partial "media/picture.html" ( dict "src" $src "raw" $raw ) -}}
{{- partial "media/picture.html" ( dict "src" $src "raw" $raw "cacheBust" $cacheBust ) -}}
{{- if .Get "link" -}}
</a>
{{- end -}}