yannstatic/_includes/snippets/get-nav-url.html

9 lines
324 B
HTML
Raw Permalink Normal View History

2024-10-31 20:18:37 +01:00
{%- assign _pre7 = include.path | slice: 0, 7 -%}
{%- assign _pre8 = include.path | slice: 0, 8 -%}
{%- if _pre7 == 'http://' or _pre8 == 'https://' -%}
{%- assign __return = include.path -%}
{%- else -%}
{%- include snippets/prepend-baseurl.html path=include.path -%}
{%- assign __return = __return -%}
{%- endif -%}