From 740fbd3e0ab1ccbb657862c61d3d557267cc8f1d Mon Sep 17 00:00:00 2001
From: jeffreytse <jeffreytse.mail@gmail.com>
Date: Tue, 22 Sep 2020 11:07:09 +0800
Subject: fix: wrong relative urls

---
 _includes/views/paginator.html   | 4 ++--
 _includes/views/post-header.html | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

(limited to '_includes')

diff --git a/_includes/views/paginator.html b/_includes/views/paginator.html
index 0e03df9..73c56bf 100644
--- a/_includes/views/paginator.html
+++ b/_includes/views/paginator.html
@@ -6,7 +6,7 @@
   <div class="paginator">
     <span class="previous">
     {% if paginator.previous_page %}
-      <a href="{{ paginator.previous_page_path }}">Prev</a>
+      <a href="{{ paginator.previous_page_path | relative_url }}">Prev</a>
     {% else %}
       <span>Prev</span>
     {% endif %}
@@ -16,7 +16,7 @@
 
     <span class="next">
     {% if paginator.next_page %}
-      <a href="{{ paginator.next_page_path }}">Next</a>
+      <a href="{{ paginator.next_page_path | relative_url }}">Next</a>
     {% else %}
       <span>Next</span>
     {% endif %}
diff --git a/_includes/views/post-header.html b/_includes/views/post-header.html
index c82bea3..df6447b 100644
--- a/_includes/views/post-header.html
+++ b/_includes/views/post-header.html
@@ -17,7 +17,7 @@
   {%- if page.tags.size > 0 -%}
   <div class="post-tags">
     {%- for tag in page.tags -%}
-    <a class="post-tag" href="/tags.html#{{tag}}">#{{tag}}</a>
+    <a class="post-tag" href="{{ '/tags.html ' | relative_url }}#{{tag}}">#{{tag}}</a>
     {%- endfor -%}
   </div>
   {%- endif -%}
-- 
cgit v1.2.3