mikaela.github.io/_includes/base.html

5 lines
265 B
HTML
Raw Permalink Normal View History

2023-02-22 19:28:38 +01:00
{% assign depth = page.url | split: '/' | size | minus: 1 %} {% if depth <= 1
%}{% assign base = '.' %} {% elsif depth == 2 %}{% assign base = '..' %} {%
elsif depth == 3 %}{% assign base = '../..' %} {% elsif depth == 4 %}{% assign
base = '../../..' %}{% endif %}