From 84b46e5617669e3c64f08c0796d7a655a495f399 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Tue, 16 May 2023 04:38:09 +0530 Subject: [PATCH] Added permanent link of first page to pagination --- index.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index c6b43bc..6e0eb6e 100644 --- a/index.html +++ b/index.html @@ -1949,7 +1949,13 @@ } if (paginationSegments > 1) { for (let i = 1; i <= paginationSegments; i++) { - if (startingPage <= i && i <= showTill) { + if (i === 1) { + pagination.push(html` + + ${i} + + `) + } else if (startingPage <= i && i <= showTill) { pagination.push(html` ${i} @@ -1962,6 +1968,9 @@ } } } + if (startingPage > 2) { + pagination.splice(1, 0, html`
...
`); + } renderElem(getRef('pagination_wrapper'), html`${pagination}`) }, availableAssetOptions() {