From 67fe82f103b78ba675ad6873cfa1b1609f3a23e1 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 8 Apr 2021 21:12:44 +0300 Subject: paginator: fix page 1 link --- _includes/common/paginator.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '_includes/common/paginator.html') diff --git a/_includes/common/paginator.html b/_includes/common/paginator.html index aaad762..d132066 100644 --- a/_includes/common/paginator.html +++ b/_includes/common/paginator.html @@ -1,4 +1,9 @@ {% if site.posts.size != 0 %} + {% if paginator.page == 1 %} + {% assign page1_url = page.url %} + {% else %} + {% assign page1_url = page.url | split: '/' | pop | join: '/' | append: '/' %} + {% endif %}