✨ feat: add raw_path
parameter to image shortcodes (#439)
This commit is contained in:
@@ -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 -%}
|
||||
|
Reference in New Issue
Block a user