diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-04-08 21:35:11 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-04-08 21:35:11 +0300 |
commit | 0b13dadaacc964ad275794f457ec587069b890e9 (patch) | |
tree | ea32d0cbd20382df53036a24686df8ceaadca84f /_includes/common/navbar.html | |
parent | paginator: add explanatory comments (diff) | |
download | jekyll-theme-0b13dadaacc964ad275794f457ec587069b890e9.tar.gz jekyll-theme-0b13dadaacc964ad275794f457ec587069b890e9.zip |
use relative_url instead of site.baseurl
Diffstat (limited to '')
-rw-r--r-- | _includes/common/navbar.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/_includes/common/navbar.html b/_includes/common/navbar.html index 6cf0e74..8ec0812 100644 --- a/_includes/common/navbar.html +++ b/_includes/common/navbar.html @@ -21,9 +21,9 @@ {% endif %} {% if node.groups contains 'navbar' %} {% if page.url == node.url %} - <li class="active"><a href="{{ site.baseurl }}{{ node.url }}" class="active">{{ node.navbar_link }}</a></li> + <li class="active"><a href="{{ node.url | relative_url }}" class="active">{{ node.navbar_link }}</a></li> {% else %} - <li><a href="{{ site.baseurl }}{{ node.url }}">{{ node.navbar_link }}</a></li> + <li><a href="{{ node.url | relative_url }}">{{ node.navbar_link }}</a></li> {% endif %} {% endif %} {% endfor %} |