Skip to content

Commit 976d138

Browse files
authored
Merge pull request #253 from activebridge/fix/blog_pagination_links
Fix blog pagination links
2 parents 223de9c + 11221f5 commit 976d138

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_layouts/blog-template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ <h2 class="message inria-bold">{{ site.data.blog.description }}</p>
5858
{% if page-num == paginator.page %}
5959
<span class="pagination__current-page">{{ page-num }}</span>
6060
{% elsif page-num == 1 %}
61-
<a class="pagination__page" href="{{ site.paginate_path | prepend: category-name | prepend: '/blog/' | replace: '/page:num', '/' }}" data-link="blog-link">{{ page-num }}</a>
61+
<a class="pagination__page" href="{{ site.paginate_path | prepend: category-name | prepend: '/blog/' | replace: '/page:num' }}" data-link="blog-link">{{ page-num }}</a>
6262
{% else %}
6363
<a class="pagination__page" href="{{ site.paginate_path | prepend: category-name | prepend: '/blog/' | replace: '//', '/' | replace: 'page:num', page-num }}/" data-link="blog-link">{{ page-num }}</a>
6464
{% endif %}

0 commit comments

Comments
 (0)