summaryrefslogtreecommitdiff
path: root/_includes/snippets/get-nav-url.html
blob: 3b1b1229f926bf36e3823b9499deab1a64db8a5e (plain)
1
2
3
4
5
6
7
8
{%- 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 -%}