From 4425216cacf5ebdcd959c838bd953f1bf2a9bb4f Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Wed, 28 Jul 2021 00:47:38 +0800 Subject: [PATCH] fix recent title --- layout/_partial/sidebar/widgets/recent.ejs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/_partial/sidebar/widgets/recent.ejs b/layout/_partial/sidebar/widgets/recent.ejs index 4cc9734..450427c 100644 --- a/layout/_partial/sidebar/widgets/recent.ejs +++ b/layout/_partial/sidebar/widgets/recent.ejs @@ -31,7 +31,7 @@ function layoutDiv() { el += ''; el += '
'; el += ''; - if (post.layout === 'wiki') { + if (post.layout == 'wiki') { el += ''; let proj = theme.wiki.projects[post.wiki]; if (proj && proj.title) { @@ -47,7 +47,7 @@ function layoutDiv() { } el += '
'; el += ''; - el += post.title; + el += post.title || post.seo_title || post.wiki; el += ''; el += '
'; el += '';