Skip to content

Commit e95e7be

Browse files
committed
fixing url for pagination
1 parent e453784 commit e95e7be

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ email: myemail@gmail.com
1919

2020
exclude: [README.md, Gemfile, Gemfile.lock, node_modules, gulpfile.js, package.json, _site, src, vendor]
2121

22-
# if you don't need pagination, comment the *paginate* below
22+
# if you don't need pagination, comment the *paginate* configs below
2323
paginate: 1
24-
paginate_path: "blog/page:num/"
24+
paginate_path: "blog/:num/"
2525

2626
gems:
2727
- jemoji

_includes/pagination.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<div class="pagination">
22
{% if paginator.previous_page %}
3-
<a href="{{ paginator.previous_page_path }}" class="previous">«</a>
3+
<a href="{{ site.url }}{{ paginator.previous_page_path }}" class="previous">«</a>
44
{% else %}
55
<span class="previous hidden">«</span>
66
{% endif %}
77

88
<span class="page_number ">page {{ paginator.page }} of {{ paginator.total_pages }}</span>
99

1010
{% if paginator.next_page %}
11-
<a href="{{ paginator.next_page_path }}" class="next">»</a>
11+
<a href="{{ site.url }}{{ paginator.next_page_path }}" class="next">»</a>
1212
{% else %}
1313
<span class="next hidden">»</span>
1414
{% endif %}

0 commit comments

Comments
 (0)