diff options
| author | Veikka Kähkönen <insiding@gmail.com> | 2017-11-27 23:09:06 +0200 |
|---|---|---|
| committer | Veikka Kähkönen <insiding@gmail.com> | 2017-11-27 23:09:06 +0200 |
| commit | 6fb186d18008e24e97212c27a3f60138965aa33e (patch) | |
| tree | 66060c55c4e85719ec62f846ff027383bbba288d /_includes/header.html | |
| parent | df4d2a345886f0114684358a91c9b4ba2fc8cb73 (diff) | |
Use absolute_url filter instead of a custom variable for URLs
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 9c5ab06..7139c89 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -2,7 +2,7 @@ <div class="header__title"> <h1 style="margin-bottom: 0px !important;"> - <a class="site-title" href="{{ site.baseurl }}/"><img src="{{ site_full_url }}/static/aswhite.png"/ height="40px" style="margin:20px "><span class="mobile_hide">{{ site.title }}</span></a> + <a class="site-title" href="{{ "/" | absolute_url }}"><img src="{{ "/static/aswhite.png" | absolute_url }}" height="40px" style="margin:20px "><span class="mobile_hide">{{ site.title }}</span></a> </h1> </div> <nav class="navigation header__navigation"> @@ -18,7 +18,7 @@ {% assign current_page = false %} {% endif %} <li class="navigation__item {% if current_page %}active{% endif %}"> - <a href="{{ site_full_url }}{{ item.href }}">{{ item.title }}</a> + <a href="{{ item.href | absolute_url }}">{{ 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="{{ site_full_url }}{{ main_page_href }}{{ subitem.href }}">{{ subitem.title }}</a> + <a href="{{ main_page_href | absolute_url }}{{ subitem.href }}">{{ subitem.title }}</a> </li> {% endfor %} </ul> |
