diff --git a/docs/websites/website-listings.qmd b/docs/websites/website-listings.qmd index 6e0b14eab3..aefdc74df2 100644 --- a/docs/websites/website-listings.qmd +++ b/docs/websites/website-listings.qmd @@ -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: