summaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
authorjeffreytse <jeffreytse.mail@gmail.com>2020-09-22 11:07:09 +0800
committerjeffreytse <jeffreytse.mail@gmail.com>2020-09-22 11:07:09 +0800
commit740fbd3e0ab1ccbb657862c61d3d557267cc8f1d (patch)
treea01f4bea2ab480209dd27d6f24badf81cada440c /_includes
parent035c3a7e2d697d913cc9476b352aae99dff78505 (diff)
fix: wrong relative urls
Diffstat (limited to '_includes')
-rw-r--r--_includes/views/paginator.html4
-rw-r--r--_includes/views/post-header.html2
2 files changed, 3 insertions, 3 deletions
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 -%}