summaryrefslogtreecommitdiff
path: root/_includes/sidebar
diff options
context:
space:
mode:
authorjeffreytse <jeffreytse.mail@gmail.com>2020-09-12 01:52:50 +0800
committerjeffreytse <jeffreytse.mail@gmail.com>2020-09-12 01:52:50 +0800
commitfa7475dc5ee57eb01e8f2adcf17835dd552c3c61 (patch)
tree5c645ef26e0b2067fe16b256c7d4121e0b7ade6d /_includes/sidebar
parent07b034bd992220f99b801ba6e11e810491d4a04e (diff)
fix: wrong relative url in sidebar extensions (#1)
Diffstat (limited to '_includes/sidebar')
-rw-r--r--_includes/sidebar/archive-list.html2
-rw-r--r--_includes/sidebar/category-list.html2
-rw-r--r--_includes/sidebar/common-list.html2
-rw-r--r--_includes/sidebar/tag-list.html2
4 files changed, 4 insertions, 4 deletions
diff --git a/_includes/sidebar/archive-list.html b/_includes/sidebar/archive-list.html
index 01968e7..b8103fa 100644
--- a/_includes/sidebar/archive-list.html
+++ b/_includes/sidebar/archive-list.html
@@ -6,5 +6,5 @@
{% assign keys = datetimes %}
{% assign field = 'date' %}
-{% assign url = '/archives.html' %}
+{% assign url = '/archives.html' | relative_url %}
{% include sidebar/common-list.html %}
diff --git a/_includes/sidebar/category-list.html b/_includes/sidebar/category-list.html
index 12b26ec..6922fbd 100644
--- a/_includes/sidebar/category-list.html
+++ b/_includes/sidebar/category-list.html
@@ -5,5 +5,5 @@
{% assign keys = categories %}
{% assign field = 'categories' %}
-{% assign url = '/categories.html' %}
+{% assign url = '/categories.html' | relative_url %}
{% include sidebar/common-list.html %}
diff --git a/_includes/sidebar/common-list.html b/_includes/sidebar/common-list.html
index 7e7bf96..b8f643f 100644
--- a/_includes/sidebar/common-list.html
+++ b/_includes/sidebar/common-list.html
@@ -9,7 +9,7 @@
<div class="common-list">
<ul>
<li>
- <a href="/index.html">
+ <a href="{{ '/index.html' | relative_url }}">
All<span>{{ site.posts.size }}</span>
</a>
</li>
diff --git a/_includes/sidebar/tag-list.html b/_includes/sidebar/tag-list.html
index dd7b37e..e6c2204 100644
--- a/_includes/sidebar/tag-list.html
+++ b/_includes/sidebar/tag-list.html
@@ -5,5 +5,5 @@
{% assign keys = tags %}
{% assign field = 'tags' %}
-{% assign url = '/tags.html' %}
+{% assign url = '/tags.html' | relative_url %}
{%- include sidebar/common-list.html -%}