aboutsummaryrefslogtreecommitdiffstats
path: root/_includes
diff options
context:
space:
mode:
authorVeikka Kähkönen <insiding@gmail.com>2017-08-29 22:42:36 +0300
committerVeikka Kähkönen <insiding@gmail.com>2017-08-29 22:42:36 +0300
commita98618d5b0bd0d99fe3a474586d84ee2d08981fa (patch)
treea2cf6a3dc6cf866fbb1abac728dfda13b6cfcaae /_includes
parent7f4a6a377ea22b5f4ed6f78dcc9a5c1a890d2d6d (diff)
Eliminate relative paths
Diffstat (limited to '_includes')
-rw-r--r--_includes/footer.html6
-rw-r--r--_includes/header.html6
2 files changed, 6 insertions, 6 deletions
diff --git a/_includes/footer.html b/_includes/footer.html
index cea5f85..35eed2f 100644
--- a/_includes/footer.html
+++ b/_includes/footer.html
@@ -5,9 +5,9 @@
<h2 class="footer-heading">Yhteistyössä</h2>
<div class="footer-col-wrapper">
<div class="footer-col footer-col-1">
- <a href="http://new.abb.com/fi"><img width="100" style="margin:20px;border:0;" src="/static/sponsors/ABB.png" alt=""></a>
- <a href="http://reaktor.com/"><img width="150" style="margin:20px;border:0;" src="/static/sponsors/reaktor.png" alt=""></a>
- <a href="http://www.eficode.fi/"><img width="100" style="margin:20px;border:0;" src="/static/sponsors/eficode.png" alt=""></a>
+ <a href="http://new.abb.com/fi"><img width="100" style="margin:20px;border:0;" src="{{ site.url }}/static/sponsors/ABB.png" alt=""></a>
+ <a href="http://reaktor.com/"><img width="150" style="margin:20px;border:0;" src="{{ site.url }}/static/sponsors/reaktor.png" alt=""></a>
+ <a href="http://www.eficode.fi/"><img width="100" style="margin:20px;border:0;" src="{{ site.url }}/static/sponsors/eficode.png" alt=""></a>
</div>
</div>
diff --git a/_includes/header.html b/_includes/header.html
index e826f2e..2c18219 100644
--- a/_includes/header.html
+++ b/_includes/header.html
@@ -8,7 +8,7 @@
<nav class="navigation header__navigation">
{% assign url_tokens = page.url | split: '/' %}
{% assign main_page_href = '/' | append: url_tokens[1] %}
- {% assign subpage_href = url_tokens[2] %}
+ {% assign subpage_href = '/' | append: url_tokens[2] %}
<ul>
{% if site.data.navi.items[0] %}
{% for item in site.data.navi.items %}
@@ -18,7 +18,7 @@
{% assign current_page = false %}
{% endif %}
<li class="navigation__item {% if current_page %}active{% endif %}">
- <a href="{{ item.href }}">{{ item.title }}</a>
+ <a href="{{ site.url }}{{ item.href }}">{{ item.title }}</a>
</li>
{% if current_page and item.subnavi %}
{% assign subnavi = item.subnavi %}
@@ -32,7 +32,7 @@
<ul>
{% for subitem in subnavi.items %}
<li class="navigation__item {% if subitem.href == subpage_href %}active{% endif %}">
- <a href="{{ subitem.href }}">{{ subitem.title }}</a>
+ <a href="{{ site.url }}{{ main_page_href }}{{ subitem.href }}">{{ subitem.title }}</a>
</li>
{% endfor %}
</ul>