fix bug
This commit is contained in:
parent
11cc16a37d
commit
d486bfd948
|
@ -12,12 +12,13 @@ function layoutDiv() {
|
|||
} else if (page.layout === 'wiki' && page.wiki && page.wiki.length > 0) {
|
||||
let proj = theme.wiki.projects[page.wiki];
|
||||
if (proj) {
|
||||
const current = page.order || 0;
|
||||
proj.pages.forEach((p, i) => {
|
||||
if (p.order < page.order) {
|
||||
if (p.order < current) {
|
||||
if (prev == undefined || p.order > prev.order) {
|
||||
prev = p;
|
||||
}
|
||||
} else if (p.order > page.order) {
|
||||
} else if (p.order > current) {
|
||||
if (next == undefined || p.order < next.order) {
|
||||
next = p;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue