Numbered pages for one alcove, with a pager you write.
paginate: splits the rows of one alcove over numbered pages. The first page is the page that holds the alcove, and page 2 and up are written to path with :n replaced.
The pager markup is yours. A pager file in content/pagers/ lists which parts to show (first, previous, the page numbers, next, last) and the HTML for each, chosen by conditions like tiles.
The live result is a small reading-room bulletin, three entries to a page. The entries are sample data made for this demo.
Live result This page is rendered on request.
Loans in the catalogue
Books out on loan are now marked on the shelf demo.
The gothic corner
Mary Shelley moves next to the window, where the light is worst.
Winter hours
The room stays open late on Thursdays until the end of March.
Source the files behind the result above
content/alcoves/demo_bulletin/alcove.yaml
query: |
SELECT slug, published, title, summary
FROM news
ORDER BY published DESC
paginate:
per_page: 3
path: docs/pagination/page/:n
pager: bulletin