forked from deepStateMirrors/tabi
✨ feat: cache bust images in shortcodes (#504)
This commit is contained in:
parent
c7bc652618
commit
cc39652eb5
6 changed files with 18 additions and 18 deletions
|
@ -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 -%}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue