fix relative paths of css and images in docs (#358)

Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com>
This commit is contained in:
Michael Hirsch
2016-11-30 07:15:44 +01:00
committed by Kai Zimmermann
parent b30f2bdb1f
commit ce70f8f960
4 changed files with 6 additions and 5 deletions

View File

@@ -1,14 +1,13 @@
<!--base to have relative path for offline navigation -->
{% assign base = '' %}
{% assign base = '.' %}
{% assign depth = page.url | split: '/' | size | minus: 1 %}
{% if page.permalink != null %}
{% assign depth = depth | plus: 1 %}
{% endif %}
{% if depth == 1 %}{% assign base = '' %}
{% 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 %}
{% elsif depth == 6 %}{% assign base = '../../../../..' %}{% endif %}