aboutsummaryrefslogtreecommitdiff
path: root/_includes/relBase.html
diff options
context:
space:
mode:
Diffstat (limited to '_includes/relBase.html')
-rw-r--r--_includes/relBase.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/_includes/relBase.html b/_includes/relBase.html
new file mode 100644
index 0000000..b2d4bc4
--- /dev/null
+++ b/_includes/relBase.html
@@ -0,0 +1,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 %}