fix: wrong relative urls

This commit is contained in:
jeffreytse 2020-09-22 11:07:09 +08:00
parent 035c3a7e2d
commit 740fbd3e0a
2 changed files with 3 additions and 3 deletions

View file

@ -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 %}

View file

@ -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 -%}