This commit is contained in:
Set Hallstrom 2019-04-01 23:16:35 +02:00
parent 9e9b61eabc
commit cfc4264419
266 changed files with 80462 additions and 40141 deletions

8
_includes/base.html Normal file
View file

@ -0,0 +1,8 @@
{% 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 %}