diff options
author | Noah Loomans <noahloomans@gmail.com> | 2018-02-27 12:51:53 +0100 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2018-02-27 12:51:53 +0100 |
commit | 1d000946313c5758b2935ed8cc9a64858172ff74 (patch) | |
tree | c403157570c20b0c1f27d8c4eba8568d1d7ced01 /_includes/relBase.html | |
parent | a3b0f7cf267f5bebcc581a9a0a06ef8616cab9c4 (diff) |
Use relative urls
Diffstat (limited to '_includes/relBase.html')
-rw-r--r-- | _includes/relBase.html | 8 |
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 %} |