feat: add 'raw_path' parameter to image shortcodes

This commit is contained in:
welpo 2024-11-27 21:33:58 +01:00
parent 180fc53384
commit c9e8966ddd
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
9 changed files with 18 additions and 15 deletions

View file

@ -1,5 +1,5 @@
{#- Determine image path based on whether the src is remote or local -#}
{%- if src is starting_with("http") -%}
{%- if src is starting_with("http") or raw_path -%}
{%- set image_url = src -%}
{%- else -%}
{%- set colocated_path = page.colocated_path | default(value="") -%}