fix recent title

This commit is contained in:
xaoxuu 2021-07-28 00:47:38 +08:00
parent b23c4bac67
commit 4425216cac
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ function layoutDiv() {
el += '<a class="more-item" href="' + url_for(post.link || post.path) + '">';
el += '<div class="cap">';
el += '<time>' + date(post.updated, config.date_format) + '</time>';
if (post.layout === 'wiki') {
if (post.layout == 'wiki') {
el += '<span>';
let proj = theme.wiki.projects[post.wiki];
if (proj && proj.title) {
@ -47,7 +47,7 @@ function layoutDiv() {
}
el += '</div>';
el += '<span class="title">';
el += post.title;
el += post.title || post.seo_title || post.wiki;
el += '</span>';
el += '</a>';
el += '';