Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix next and prev links not working #130

Merged
merged 4 commits into from
Nov 20, 2020
Merged

Conversation

kiaking
Copy link
Member

@kiaking kiaking commented Nov 18, 2020

This PR fixes the issue where the next and prev links are not working correctly.

I've moved the logic into the client side and removed the next/prev property from the PageData. While it is nice to include them in PageData and it is more performant to do it on the server side, sidebar config is currently living in ThemeConfig, so it gets messy on server side.

We could come back to this when we have more precise guidelines on handling "theme" in VitePress.

@kiaking kiaking added the bug Something isn't working label Nov 18, 2020
@kiaking kiaking self-assigned this Nov 18, 2020
@kiaking kiaking merged commit fdd498b into master Nov 20, 2020
@kiaking kiaking deleted the fix-next-and-prev-link branch November 20, 2020 08:02
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant