Skip to content

Commit

Permalink
Merge branch 'master' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
Keats authored May 28, 2019
2 parents 717f211 + 8491110 commit ba6165f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docs/content/documentation/templates/pagination.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ title = "Pagination"
weight = 30
+++

Two things can get paginated: a section or a taxonomy term.
Two things can get paginated: a section and a taxonomy term.

Every paginated template gets a `paginator` variable of the `Pager` type:
A paginated section gets the same `section` variable as a normal
[section page](./documentation/templates/pages-sections.md#section-variables) minus its pages
while both a paginated taxonomy page and a paginated section page gets a
`paginator` variable of the `Pager` type:

```ts
// How many items per page
Expand All @@ -32,11 +35,12 @@ current_index: Number;
## Section

A paginated section gets the same `section` variable as a normal
[section page](@/documentation/templates/pages-sections.md#section-variables) minus its pages.
[section page](./documentation/templates/pages-sections.md#section-variables)
minus its pages. The pages are instead in `paginator.pages`.

## Taxonomy term

A paginated taxonomy gets two variables:
A paginated taxonomy gets two variables aside from the `paginator` variable:

- a `taxonomy` variable of type `TaxonomyConfig`
- a `term` variable of type `TaxonomyTerm`.
Expand Down

0 comments on commit ba6165f

Please sign in to comment.