Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ba8364d

Browse files
committed
no need to use site.baseurl with relative permalinks enabled
1 parent 45fab77 commit ba8364d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_includes/sidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
{% for node in pages_list %}
2121
{% if node.title != null %}
2222
{% if node.layout == "page" %}
23-
<a class="sidebar-nav-item{% if page.url == node.url %} active{% endif %}" href="{{ site.baseurl }}{{ node.url }}">{{ node.title }}</a>
23+
<a class="sidebar-nav-item{% if page.url == node.url %} active{% endif %}" href="{{ node.url }}">{{ node.title }}</a>
2424
{% endif %}
2525
{% endif %}
2626
{% endfor %}

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{% for post in paginator.posts %}
88
<div class="post">
99
<h1 class="post-title">
10-
<a href="{{ site.baseurl }}{{ post.url }}">
10+
<a href="{{ post.url }}">
1111
{{ post.title }}
1212
</a>
1313
</h1>

0 commit comments

Comments
 (0)