module.exports = function (pagination, page) { const nextBtn = pagination.href.next ? `Show moooar plugins` : '' const list = pagination.pages.map((item, i) => { const current = page.url == pagination.hrefs[i] const currentTxt = (txtCurrent, txtFallback) => { return current ? txtCurrent : (txtFallback ? txtFallback : '') } return `
  • ${i + 1}
  • ` }).join(''); return ` ` }