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

@@ -10,7 +10,7 @@
{%- endif -%}
{# Handling for light mode image #}
{%- if light_src is starting_with("http") -%}
{%- if light_src is starting_with("http") or raw_path -%}
{%- set light_image_url = light_src -%}
{%- else -%}
{%- set relative_light_path = colocated_path ~ light_src -%}
@@ -23,7 +23,7 @@
{%- endif -%}
{# Handling for dark mode image #}
{%- if dark_src is starting_with("http") -%}
{%- if dark_src is starting_with("http") or raw_path -%}
{%- set dark_image_url = dark_src -%}
{%- else -%}
{%- set relative_dark_path = colocated_path ~ dark_src -%}