aboutsummaryrefslogtreecommitdiff
path: root/_includes/relBase.html
blob: b2d4bc40d4b42f70c367b2d42ee447e9d09902f7 (plain)
1
2
3
4
5
6
7
8
{% assign relBase = '' %}
{% assign tempDepth = page.url | append: 'hackish-solution' | split: '/' | size | minus: 2 %}
{% for i in (1..tempDepth) %}
    {% assign relBase = relBase | append: "../" %}
{% endfor %}
{% if relBase == '' %}
    {% assign relBase = './' %}
{% endif %}