aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/common/paginator.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/paginator.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/paginator.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/_includes/common/paginator.html b/_includes/common/paginator.html
index 659ea87..471383c 100644
--- a/_includes/common/paginator.html
+++ b/_includes/common/paginator.html
@@ -14,7 +14,7 @@
{% endif %}
<ul class="pagination">
{% if paginator.previous_page %}
- <li><a href="{{ site.baseurl }}{{ paginator.previous_page_path }}"><span class="glyphicon glyphicon-chevron-left"></span>&nbsp;Prev</a></li>
+ <li><a href="{{ paginator.previous_page_path | relative_url }}"><span class="glyphicon glyphicon-chevron-left"></span>&nbsp;Prev</a></li>
{% else %}
<li class="disabled"><a href="#"><span class="glyphicon glyphicon-chevron-left"></span>&nbsp;Prev</a></li>
{% endif %}
@@ -22,13 +22,13 @@
{% if page_number == paginator.page %}
<li class="active"><a href="#">{{ page_number }}</a></li>
{% elsif page_number == 1 %}
- <li><a href="{{ site.baseurl }}{{ page1_url }}">{{ page_number }}</a></li>
+ <li><a href="{{ page1_url | relative_url }}">{{ page_number }}</a></li>
{% else %}
- <li><a href="{{ site.baseurl }}{{ site.paginate_path | replace: ':num', page_number }}">{{ page_number }}</a></li>
+ <li><a href="{{ site.paginate_path | replace: ':num', page_number | relative_url }}">{{ page_number }}</a></li>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
- <li><a href="{{ site.baseurl }}{{ paginator.next_page_path }}">Next&nbsp;<span class="glyphicon glyphicon-chevron-right"></span></a></li>
+ <li><a href="{{ paginator.next_page_path | relative_url }}">Next&nbsp;<span class="glyphicon glyphicon-chevron-right"></span></a></li>
{% else %}
<li class="disabled"><a href="#">Next&nbsp;<span class="glyphicon glyphicon-chevron-right"></span></a></li>
{% endif %}