diff options
| author | Veikka Kähkönen <insiding@gmail.com> | 2017-08-29 22:42:36 +0300 |
|---|---|---|
| committer | Veikka Kähkönen <insiding@gmail.com> | 2017-08-29 22:42:36 +0300 |
| commit | a98618d5b0bd0d99fe3a474586d84ee2d08981fa (patch) | |
| tree | a2cf6a3dc6cf866fbb1abac728dfda13b6cfcaae /_includes/header.html | |
| parent | 7f4a6a377ea22b5f4ed6f78dcc9a5c1a890d2d6d (diff) | |
Eliminate relative paths
Diffstat (limited to '_includes/header.html')
| -rw-r--r-- | _includes/header.html | 6 |
1 files changed, 3 insertions, 3 deletions
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> |
