mirror of
https://github.com/welpo/tabi.git
synced 2025-10-12 00:06:14 +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
|
@ -15,7 +15,7 @@
|
|||
{%- endif -%}
|
||||
|
||||
{#- Direct or relative URL handling for default image -#}
|
||||
{%- if default_src is starting_with("http") -%}
|
||||
{%- if default_src is starting_with("http") or raw_path -%}
|
||||
{%- set default_image_url = default_src -%}
|
||||
{%- else -%}
|
||||
{%- set relative_default_path = colocated_path ~ default_src -%}
|
||||
|
@ -28,7 +28,7 @@
|
|||
{%- endif -%}
|
||||
|
||||
{#- Direct or relative URL handling for hovered image -#}
|
||||
{%- if hovered_src is starting_with("http") -%}
|
||||
{%- if hovered_src is starting_with("http") or raw_path -%}
|
||||
{%- set hovered_image_url = hovered_src -%}
|
||||
{%- else -%}
|
||||
{%- set relative_hovered_path = colocated_path ~ hovered_src -%}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue