fix: image caching cache key
This commit is contained in:
parent
fa3c57be79
commit
3a2a6482da
6 changed files with 15 additions and 12 deletions
|
@ -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 -}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue