From b1b577f331419a9549c76f241e94bb32106e3640 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Mon, 22 Feb 2021 23:22:59 +0800 Subject: [PATCH] fix bugs --- layout/_partial/main/article/read_next.ejs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layout/_partial/main/article/read_next.ejs b/layout/_partial/main/article/read_next.ejs index 0709625..1525bd7 100644 --- a/layout/_partial/main/article/read_next.ejs +++ b/layout/_partial/main/article/read_next.ejs @@ -20,6 +20,7 @@ function layoutDiv() { return false; } }).sort('order'); + page.order = page.order || 0; wikis.forEach((p, i) => { if (p.order < page.order) { if (prev == undefined || p.order > prev.order) { @@ -42,7 +43,7 @@ function layoutDiv() { if (next) { wrapper += '
'; wrapper += ''; - wrapper += next.title || next.seo_title; + wrapper += next.title || next.seo_title || next.wiki; wrapper += ''; wrapper += '
'; } @@ -50,7 +51,7 @@ function layoutDiv() { wrapper += '
'; wrapper += ''; wrapper += title_prev + __('symbol.colon'); - wrapper += prev.title || prev.seo_title; + wrapper += prev.title || prev.seo_title || prev.wiki; wrapper += ''; wrapper += '
'; }