aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/common/sidebar.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/sidebar.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 '')
-rw-r--r--_includes/common/sidebar.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/_includes/common/sidebar.html b/_includes/common/sidebar.html
index 76cced0..923eb04 100644
--- a/_includes/common/sidebar.html
+++ b/_includes/common/sidebar.html
@@ -14,7 +14,7 @@
{% else %}
<div class="list-group wide-enough">
{% for post in site.posts limit: 5 %}
- <a class="list-group-item" href="{{ site.baseurl }}{{ post.url }}">
+ <a class="list-group-item" href="{{ post.url | relative_url }}">
<span class="badge"><span class="glyphicon glyphicon-time"></span>&nbsp;{{ post.date | date: '%-d %b %Y' }}</span>
<span class="glyphicon glyphicon-file"></span>&nbsp;{{ post.title }}
</a>