This repository has been archived by the owner. It is now read-only.
Paginator Helper for AcyOrt
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.editorconfig
.eslintignore
.eslintrc
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
index.js
package-lock.json
package.json
paginator.js

README.md

acyort-paginator

Build Status codecov

Paginator Helper for AcyOrt

Install

$ npm i acyort-paginator -S

Usage

set config in config.yml

# ...
plugin:
  - acyort-paginator
# ...

add function in templates

<a rel="prev" href="{{ _url(page.prev) }}">←</a>

<-- default -->
{{ _paginator(page) }}

<!-- custom more tag -->
{{ _paginator(page, '...') }}

<a rel="next" href="{{ _url(page.next) }}">→</a>