aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2023-05-31 08:35:22 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2023-05-31 08:35:22 +0200
commit53227fed34ff637e5fc9d612aa1d5f5e9c5b6dac (patch)
tree3bd73d69c4a02652f09080c0f171abf5dc2f2048
parent5459290c7f7316b9c24efdcbe5599bda1f7b3859 (diff)
downloadmitjafelicijan.com-53227fed34ff637e5fc9d612aa1d5f5e9c5b6dac.tar.gz
Added cachebusting to images
-rw-r--r--themes/simple/layouts/_default/_markup/render-image.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/themes/simple/layouts/_default/_markup/render-image.html b/themes/simple/layouts/_default/_markup/render-image.html
index 5da02eb..6f46efa 100644
--- a/themes/simple/layouts/_default/_markup/render-image.html
+++ b/themes/simple/layouts/_default/_markup/render-image.html
@@ -1,8 +1,10 @@
1{{ $cachebuster := delimit (shuffle (split (md5 "6fab11c6669976d759d2992eff1dd5be") "" )) "" }}
2
1<figure> 3<figure>
2 <a href="{{ .Destination }}" target="_blank"> 4 <a href="{{ .Destination }}" target="_blank">
3 <img 5 <img
4 loading="lazy" 6 loading="lazy"
5 src="{{ .Destination }}" 7 src="{{ .Destination }}?v={{ $cachebuster }}"
6 alt="{{ .Text }}" title="{{ .Text }}"> 8 alt="{{ .Text }}" title="{{ .Text }}">
7 </a> 9 </a>
8</figure> 10</figure>