feat: add cachebust parameter to image shortcodes

This commit is contained in:
Axel Karjalainen 2025-04-02 21:13:05 +03:00
parent a59310a6b2
commit 3404092ab5
6 changed files with 18 additions and 18 deletions

View file

@ -9,9 +9,9 @@
{#- Fallback to absolute path if relative path doesn't work -#}
{%- if not meta -%}
{%- set meta = get_image_metadata(path=src, allow_missing=true) -%}
{%- set image_url = get_url(path=src) -%}
{%- set image_url = get_url(path=src, cachebust=true) -%}
{%- else %}
{%- set image_url = get_url(path=relative_path) -%}
{%- set image_url = get_url(path=relative_path, cachebust=true) -%}
{%- endif -%}
{%- endif -%}