Skip to content

show next and previous page title in pagination instead of label #2845

Closed Answered by HiDeoo
faiz9068 asked this question in Q&A
Discussion options

You must be logged in to vote

👋 I'm assuming we are talking in the case of a page using the sidebar.label frontmatter field used to change the label for this page in the sidebar when displayed in an autogenerated group of links.

In this case, there is no built-in option to use the title only in the pagination links but keep the label in the sidebar. However, this is something achievable using component overrides which allow you to replace and customize the default components used by Starlight.

An override for the <Pagination> component could be created to update the label of pagination links to use the title of the associated page instead of the sidebar label. Here's a basic example of how such an override could be im…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@faiz9068
Comment options

@HiDeoo
Comment options

@faiz9068
Comment options

Answer selected by HiDeoo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants