mirror of
https://github.com/welpo/tabi.git
synced 2025-10-11 07:46:15 +02:00
✨ feat: add raw_path
parameter to image shortcodes (#439)
This commit is contained in:
parent
180fc53384
commit
f8e98afd9d
9 changed files with 18 additions and 15 deletions
|
@ -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 -%}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue