adjust copy
This commit is contained in:
parent
bd434a9e7c
commit
64ec1b203a
1 changed files with 3 additions and 5 deletions
|
|
@ -4,7 +4,7 @@ title: Pagination
|
||||||
|
|
||||||
The blog posts use [Eleventy's pagination feature](https://www.11ty.dev/docs/pagination/). The logic for this can be found in the layout `src/_layouts/blog.njk`, how many entries should be on a page can be defined in `src/pages/blog.md`.
|
The blog posts use [Eleventy's pagination feature](https://www.11ty.dev/docs/pagination/). The logic for this can be found in the layout `src/_layouts/blog.njk`, how many entries should be on a page can be defined in `src/pages/blog.md`.
|
||||||
|
|
||||||
If you do not want any pagination at all, it is easiest to specify a very high number for the pagination size, for example:
|
If you do not want any pagination at all, it is easiest to set a very high number for the pagination size, for example:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
pagination:
|
pagination:
|
||||||
|
|
@ -12,16 +12,14 @@ data: collections.posts
|
||||||
size: 10000
|
size: 10000
|
||||||
```
|
```
|
||||||
|
|
||||||
Now all entries are displayed under `/blog/` and there is no more pagination.
|
In `src/_data_/meta.js` you can set some values for the visible content (previous / next buttons) and the aria labels.
|
||||||
|
|
||||||
In `src/_data_/meta.js` you can set some values for the visible content and the aria labels.
|
|
||||||
|
|
||||||
You can also **hide the number fields** between the previous and next buttons by setting `paginationNumbers` to `false`.
|
You can also **hide the number fields** between the previous and next buttons by setting `paginationNumbers` to `false`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
blog: {
|
blog: {
|
||||||
// other adjustments
|
// other adjustments
|
||||||
pagination: 'Blog',
|
paginationLabel: 'Blog',
|
||||||
paginationPage: 'Page',
|
paginationPage: 'Page',
|
||||||
paginationPrevious: 'Previous',
|
paginationPrevious: 'Previous',
|
||||||
paginationNext: 'Next',
|
paginationNext: 'Next',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue