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:
committed by
Kai Zimmermann
parent
b30f2bdb1f
commit
ce70f8f960
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
date : "2015-06-22T11:08:19+08:00"
|
date : "2015-06-22T11:08:19+08:00"
|
||||||
title : "What is hawkBit"
|
title : "What is Eclipse hawkBit"
|
||||||
series : "homepagetop"
|
series : "homepagetop"
|
||||||
sequence: "1"
|
sequence: "1"
|
||||||
order : "1"
|
order : "1"
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
<!--base to have relative path for offline navigation -->
|
<!--base to have relative path for offline navigation -->
|
||||||
|
|
||||||
{% assign base = '' %}
|
{% assign base = '.' %}
|
||||||
{% assign depth = page.url | split: '/' | size | minus: 1 %}
|
{% assign depth = page.url | split: '/' | size | minus: 1 %}
|
||||||
{% if page.permalink != null %}
|
{% if page.permalink != null %}
|
||||||
{% assign depth = depth | plus: 1 %}
|
{% assign depth = depth | plus: 1 %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if depth == 1 %}{% assign base = '' %}
|
{% if depth == 1 %}{% assign base = '.' %}
|
||||||
{% elsif depth == 2 %}{% assign base = '..' %}
|
{% elsif depth == 2 %}{% assign base = '..' %}
|
||||||
{% elsif depth == 3 %}{% assign base = '../..' %}
|
{% elsif depth == 3 %}{% assign base = '../..' %}
|
||||||
{% elsif depth == 4 %}{% assign base = '../../..' %}
|
{% elsif depth == 4 %}{% assign base = '../../..' %}
|
||||||
{% elsif depth == 5 %}{% assign base = '../../../..' %}
|
{% elsif depth == 5 %}{% assign base = '../../../..' %}
|
||||||
{% elsif depth == 6 %}{% assign base = '../../../../..' %}{% endif %}
|
{% elsif depth == 6 %}{% assign base = '../../../../..' %}{% endif %}
|
||||||
|
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
---
|
---
|
||||||
layout: blog_summary
|
layout: blog_summary
|
||||||
|
permalink: /blog/
|
||||||
---
|
---
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
layout: news_summary
|
layout: news_summary
|
||||||
title: News
|
title: News
|
||||||
|
permalink: /news/
|
||||||
---
|
---
|
||||||
Reference in New Issue
Block a user