1
0
Fork 0
mirror of https://github.com/GuerillaStudio/vanillalist.git synced 2024-10-22 17:37:29 +00:00
This commit is contained in:
Tixie 2021-03-01 05:11:28 +01:00
parent b07e3501dd
commit 4613cc1dd2

View file

@ -1,5 +1,5 @@
module.exports = function (pagination, page) { module.exports = function (pagination, page) {
const nextBtn = pagination.href.next ? `<a class="btn btn--primary btn--big w100" href="${pagination.href.next}" aria-label="Next page">Moar plugin</a>` : '' const nextBtn = pagination.href.next ? `<a class="btn btn--primary btn--big w100" href="${pagination.href.next}" aria-label="Next page">Show moooar plugins</a>` : ''
const list = pagination.pages.map((item, i) => { const list = pagination.pages.map((item, i) => {
const current = page.url == pagination.hrefs[i] const current = page.url == pagination.hrefs[i]
const currentTxt = (txtCurrent, txtFallback) => { const currentTxt = (txtCurrent, txtFallback) => {