basspistol.com/_includes/highlightbase.html

9 lines
383 B
HTML
Raw Normal View History

2019-02-28 17:06:17 +01:00
{% assign base = '' %}
{% assign depth = page.url | split: '/' | size %}
{% if depth <= 1 %}{% assign base = '.' %}
{% elsif depth == 2 %}{% assign base = '.' %}
{% elsif depth == 3 %}{% assign base = '..' %}
{% elsif depth == 4 %}{% assign base = '../..' %}
{% elsif depth == 5 %}{% assign base = '../../..' %}
{% elsif depth == 6 %}{% assign base = '../../../..' %}{% endif %}