diff --git a/_config.yml b/_config.yml index 1469d2e..049ae7d 100755 --- a/_config.yml +++ b/_config.yml @@ -26,7 +26,7 @@ sidebar: # Sidebar widgets widgets: # default layout in home/wiki/categories/tags/archives pages - layout: [welcome, recent] + default: [welcome, recent] # Recent update recent: layout: recent diff --git a/layout/_partial/main/article/read_next.ejs b/layout/_partial/main/article/read_next.ejs index 1525bd7..821290a 100644 --- a/layout/_partial/main/article/read_next.ejs +++ b/layout/_partial/main/article/read_next.ejs @@ -33,32 +33,32 @@ function layoutDiv() { } }); } - let wrapper = ''; + let el = ''; if (prev || next) { - wrapper += ''; } - return wrapper; + return el; } %> <%- layoutDiv(); %> diff --git a/layout/_partial/main/article/references.ejs b/layout/_partial/main/article/references.ejs index eae46b2..6cec712 100644 --- a/layout/_partial/main/article/references.ejs +++ b/layout/_partial/main/article/references.ejs @@ -4,7 +4,7 @@ function layoutDiv() { return ''; } let el = ''; - el += '
'; + el += '
'; if (page.references && page.references.length > 0) { el += '
'; el += '
'; @@ -14,7 +14,7 @@ function layoutDiv() { page.references.forEach((item, i) => { el += '
  • '; el += ''; - el += item.title; + el += item.title || item.url; el += ''; el += '
  • '; }); diff --git a/layout/_partial/main/article/related_posts.ejs b/layout/_partial/main/article/related_posts.ejs index b4bd2ad..6b84a31 100644 --- a/layout/_partial/main/article/related_posts.ejs +++ b/layout/_partial/main/article/related_posts.ejs @@ -1,4 +1,4 @@ -