Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions docs/websites/website-listings.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,32 @@ listing:
page-size: 36
```

{{< prerelease-callout 1.12 >}}

Use the option `pagination` to set the number of page links that the pagination control shows.
These options have an effect only when the listing has more items than `page-size`.

| Option | Description |
|----------------------|---------------------------------------------------------------------------------------------|
| `inner-window` | The number of page links on each side of the current page. Use 1 or more. The default is 2. |
| `outer-window` | The number of page links at the start and at the end of the control. The default is 0. |
| `outer-window-left` | The number of page links at the start of the control. This value replaces `outer-window`. |
| `outer-window-right` | The number of page links at the end of the control. This value replaces `outer-window`. |

This listing shows one page link on each side of the current page.
It also always shows the first page and the last page:

``` yaml
listing:
page-size: 10
pagination:
inner-window: 1
outer-window: 1
```

Each value must be a whole number.
If a value is not valid, Quarto shows a warning and ignores that option.

## Listing Location

By default, listings will simply be appended to the main content region of the page. If you'd like to control where a listing appears, set an `id` for that listing and use that `id` on a corresponding div in the page. For example, updating the page used in the previous example to this:
Expand Down
Loading