From 141a8d8afb45ec3ac2049b9e4eb1c6e30c933d01 Mon Sep 17 00:00:00 2001 From: Oyvind Kvanes <oyvind@kvanes.no> Date: Wed, 5 Oct 2016 10:50:51 +0200 Subject: [PATCH] Fix blog pagination --- blog/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blog/index.html b/blog/index.html index 91ae2009..5479ebfb 100644 --- a/blog/index.html +++ b/blog/index.html @@ -33,9 +33,9 @@ title: All Blog Posts {% if page == paginator.page %} <em>{{ page }}</em> {% elsif page == 1 %} - <a href="{{ '/index.html' | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a> + <a href="{{ '/blog' | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a> {% else %} - <a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a> + <a href="{{ site.paginate_path | prepend: '/' | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a> {% endif %} {% endfor %} -- GitLab