aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/common/navbar.html
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-04-08 21:35:11 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-04-08 21:35:11 +0300
commit0b13dadaacc964ad275794f457ec587069b890e9 (patch)
treeea32d0cbd20382df53036a24686df8ceaadca84f /_includes/common/navbar.html
parentpaginator: add explanatory comments (diff)
downloadjekyll-theme-0b13dadaacc964ad275794f457ec587069b890e9.tar.gz
jekyll-theme-0b13dadaacc964ad275794f457ec587069b890e9.zip
use relative_url instead of site.baseurl
Diffstat (limited to '_includes/common/navbar.html')
-rw-r--r--_includes/common/navbar.html4
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 %}