[fix] fix recent widget

This commit is contained in:
xaoxuu 2022-11-22 23:33:52 +08:00
parent a78feec152
commit d142895ef3
1 changed files with 1 additions and 0 deletions

View File

@ -28,6 +28,7 @@ function layoutDiv() {
el += '<div class="widget-body related-posts fs14">';
arr.length = item.limit
arr.forEach(post => {
if (!post) { return }
el += '<a class="item title" href="' + url_for(post.link || post.path) + '">';
el += '<span class="title">'
if (post.layout == 'wiki') {