diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-05-31 08:35:22 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-05-31 08:35:22 +0200 |
| commit | 53227fed34ff637e5fc9d612aa1d5f5e9c5b6dac (patch) | |
| tree | 3bd73d69c4a02652f09080c0f171abf5dc2f2048 /themes/simple/layouts/_default | |
| parent | 5459290c7f7316b9c24efdcbe5599bda1f7b3859 (diff) | |
| download | mitjafelicijan.com-53227fed34ff637e5fc9d612aa1d5f5e9c5b6dac.tar.gz | |
Added cachebusting to images
Diffstat (limited to 'themes/simple/layouts/_default')
| -rw-r--r-- | themes/simple/layouts/_default/_markup/render-image.html | 4 |
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> |
