-
Notifications
You must be signed in to change notification settings - Fork 163
feat: page prev/next designs #849
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
Comments
it is beautiful 🤩 |
About the In the template, it call directory() with a string (prev._path): <span v-if="directory(prev._path)" class="directory">
{{ directory(prev._path) }}
</span> And then in the directory function, this argument is named const directory = (link: any) => {
const nav = navDirFromPath(link._path, navigation.value || []) So I suggest to rename the directory argument I've also noted, after doing this change on my side, that when the So, here my proposal for the first 5 lines of the directory() function: const directory = (path: string) => {
const nav = navDirFromPath(path, navigation.value || [])
if (nav && nav[0]) {
return nav[0]._path.split('/').filter(Boolean).map(upperFirst).join(' ')
} else {
// no other changes...
}
} I could certainly provide a PR for this, but if someone is working on improving this component, it could be easily integrated. (Hope this help) |
Thank you @electrolinux 🙏 cc @bdrtsky |
awesome @electrolinux I will use this to improve |
@Tahul yes |
I really like what Volta has done: https://volta.net/docs/get-started/install-with-github
https://volta.s3.fr-par.scw.cloud/Clean_Shot_2023_03_10_at_16_20_13_3e197bf3f8.mp4
We could set a default arrow icon if none is set for the previous/next page.
The text was updated successfully, but these errors were encountered: