|
|
@ -31,7 +31,9 @@ export function usePrevNext() {
|
|
|
|
? frontmatter.value.prev
|
|
|
|
? frontmatter.value.prev
|
|
|
|
: typeof frontmatter.value.prev === 'object'
|
|
|
|
: typeof frontmatter.value.prev === 'object'
|
|
|
|
? frontmatter.value.prev.text
|
|
|
|
? frontmatter.value.prev.text
|
|
|
|
: undefined) ?? candidates[index - 1]?.text,
|
|
|
|
: undefined) ??
|
|
|
|
|
|
|
|
candidates[index - 1]?.docFooterText ??
|
|
|
|
|
|
|
|
candidates[index - 1]?.text,
|
|
|
|
link:
|
|
|
|
link:
|
|
|
|
(typeof frontmatter.value.prev === 'object'
|
|
|
|
(typeof frontmatter.value.prev === 'object'
|
|
|
|
? frontmatter.value.prev.link
|
|
|
|
? frontmatter.value.prev.link
|
|
|
@ -45,7 +47,9 @@ export function usePrevNext() {
|
|
|
|
? frontmatter.value.next
|
|
|
|
? frontmatter.value.next
|
|
|
|
: typeof frontmatter.value.next === 'object'
|
|
|
|
: typeof frontmatter.value.next === 'object'
|
|
|
|
? frontmatter.value.next.text
|
|
|
|
? frontmatter.value.next.text
|
|
|
|
: undefined) ?? candidates[index + 1]?.text,
|
|
|
|
: undefined) ??
|
|
|
|
|
|
|
|
candidates[index + 1]?.docFooterText ??
|
|
|
|
|
|
|
|
candidates[index + 1]?.text,
|
|
|
|
link:
|
|
|
|
link:
|
|
|
|
(typeof frontmatter.value.next === 'object'
|
|
|
|
(typeof frontmatter.value.next === 'object'
|
|
|
|
? frontmatter.value.next.link
|
|
|
|
? frontmatter.value.next.link
|
|
|
|