basspistol.com/_includes/highlightbase.html
Set Hallstrom cfc4264419 wtftftf?
2019-04-01 23:16:35 +02:00

9 lines
383 B
HTML

{% 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 %}