fixed tutorial

Signed-off-by: Kai Kreuzer <kai@openhab.org>
pull/1/merge
Kai Kreuzer 2016-05-14 22:32:36 +02:00
parent 6ff63c5710
commit d279fe2175
5 changed files with 12 additions and 11 deletions

View File

@ -1,8 +1,8 @@
{% assign base = '' %}
{% assign depth = page.url | split: '/' | size | minus: 1 %}
{% 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 %}
{% assign depth = page.url | split: '/' | size | minus: 2 %}
{% if depth == 0 %}{% assign base = '.' %}
{% elsif depth == 1 %}{% assign base = '..' %}
{% elsif depth == 2 %}{% assign base = '../..' %}
{% elsif depth == 3 %}{% assign base = '../../..' %}
{% elsif depth == 4 %}{% assign base = '../../../..' %}
{% elsif depth == 5 %}{% assign base = '../../../../..' %}{% endif %}

View File

@ -15,4 +15,4 @@
<li><a href="{{docu}}/index.html">Designer</a></li>
</ul>
</li>
</ul>
</ul>

View File

@ -29,13 +29,13 @@
<a href="#" data-activates="nav-mobile" class="button-collapse"><i
class="mdi-navigation-menu"></i></a>
<ul class="right hide-on-med-and-down">
<li><a href="{{base}}/tutorial/index.html">Getting Started</a></li>
<li><a href="{{base}}/tutorial/gettingstarted.html">Getting Started</a></li>
<li><a href="{{base}}/index.html">Documentation</a></li>
<li><a href="https://github.com/openhab/openhab-distro">GitHub</a></li>
</ul>
<ul id="nav-mobile" class="side-nav">
<li><a href="{{base}}/index.html">Home</a></li>
<li><a href="{{base}}/tutorial/index.html">Getting Started</a></li>
<li><a href="{{base}}/tutorial/gettingstarted.html">Getting Started</a></li>
<li><a href="{{base}}/index.html">Documentation</a></li>
<li><a href="https://github.com/openhab/openhab-distro">GitHub</a></li>
</ul>

View File

@ -10,4 +10,5 @@
</div>
</div>
</section>
{% include footer.html %}