From be52a965e37b2615f9620e47686a776d432fac2b Mon Sep 17 00:00:00 2001 From: Andrew Boyer Date: Sat, 15 Jun 2024 20:31:40 +0100 Subject: [PATCH] fix: remove 'index.html' in pagination (#2509) Currently, on the [blog](https://alshedivat.github.io/al-folio/blog/) page, clicking "older" and "newer" on the pagination at the bottom direct you forward to links like `/al-folio/blog/page/2/` and backward to `/al-folio/blog/`. However, if you click on the `1`, `2`.. etc buttons, there is a different behavior. The links now contain an `index.html`. For example, clicking `2` leads you to `/al-folio/blog/page/2/index.html`. It is the same content, just with a messier hyper link. Same with clicking `1`, you are brought to `/al-folio/blog/`. This fix creates a consistency among the hyper links in pagination. --- _includes/pagination.liquid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/pagination.liquid b/_includes/pagination.liquid index 3351d97775e2..4f6797594835 100644 --- a/_includes/pagination.liquid +++ b/_includes/pagination.liquid @@ -9,7 +9,7 @@ {% if paginator.page_trail %} {% for trail in paginator.page_trail %}
  • - {{ trail.num }} + {{ trail.num }}
  • {% endfor %} {% endif %}