mirror of
https://github.com/mikaela/mikaela.github.io/
synced 2024-12-30 15:22:34 +01:00
6 lines
268 B
HTML
6 lines
268 B
HTML
|
{% 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 %}
|