feat: add raw_path parameter to image shortcodes (#439)

This commit is contained in:
Óscar
2024-11-27 21:34:42 +01:00
committed by GitHub
parent 180fc53384
commit f8e98afd9d
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="") -%}