indentation

This commit is contained in:
madrilene 2024-02-13 15:38:40 +01:00
parent de0a5d02de
commit 3bfc787fdf

View file

@ -8,8 +8,8 @@ If you do not want any pagination at all, it is easiest to set a very high numbe
```yaml ```yaml
pagination: pagination:
data: collections.posts data: collections.posts
size: 10000 size: 10000
``` ```
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 (previous / next buttons) and the aria labels.
@ -17,20 +17,21 @@ In `src/_data_/meta.js` you can set some values for the visible content (previou
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
paginationLabel: 'Blog', paginationLabel: 'Blog',
paginationPage: 'Page', paginationPage: 'Page',
paginationPrevious: 'Previous', paginationPrevious: 'Previous',
paginationNext: 'Next', paginationNext: 'Next',
paginationNumbers: true paginationNumbers: true
}
``` ```
If you want to change the collection that is paginated (by default `collections.posts`), you must do so in two places: the front matter of the template, `src/pages/blog.md`: If you want to change the collection that is paginated (by default `collections.posts`), you must do so in two places: the front matter of the template, `src/pages/blog.md`:
```yaml ```yaml
pagination: pagination:
data: collections.posts data: collections.posts
``` ```
and where the pagination component is included: `src/_layouts/blog.njk`: and where the pagination component is included: `src/_layouts/blog.njk`: