diff --git a/_config.yml b/_config.yml index c73f1c0..c1e268c 100755 --- a/_config.yml +++ b/_config.yml @@ -29,8 +29,10 @@ nav_menu: # widgets: # - icon: fas fa-bullhorn # title: 注意啦 -# body: '本站使用 Material X 作为主题,喜欢这个主题的朋友可以阅读文档进行安装哦。超喜欢的话还可以安利给身边的朋友哦。' -# url: https://xaoxuu.com/wiki/material-x/ +# body: '本站使用 Material X 作为主题,喜欢这个主题的朋友可以阅读文档进行安装哦,超喜欢的话还可以安利给身边的朋友哦~' +# more: # 可选,默认为空 +# icon: fas fa-question-circle # 可选,默认为“fas fa-question-circle” +# url: https://xaoxuu.com/wiki/material-x/ # 友链的写法示例 links: diff --git a/layout/_partial/side.ejs b/layout/_partial/side.ejs index a82f242..ecd00ab 100755 --- a/layout/_partial/side.ejs +++ b/layout/_partial/side.ejs @@ -4,13 +4,16 @@ <% } %> <% if (config.widgets){ %> <% (config.widgets||[]).forEach(function(item){ %> -
+
+ <% if(item.icon && item.title) { %>
  <%= item.title %>
- <% if(item.url) { %> - + <% if(item.more && item.more.url) { %> + + <%} %>
+ <%} %>
<%- item.body %>
diff --git a/layout/_widget/author.ejs b/layout/_widget/author.ejs index 2aacd67..55f50e7 100755 --- a/layout/_widget/author.ejs +++ b/layout/_widget/author.ejs @@ -1,5 +1,5 @@ <% if(theme.widgets.author.enable != false) { %> -
+
<% if(theme.widgets.author.avatar) { %>
diff --git a/layout/_widget/categories.ejs b/layout/_widget/categories.ejs index 52266f7..db694f8 100755 --- a/layout/_widget/categories.ejs +++ b/layout/_widget/categories.ejs @@ -1,4 +1,4 @@ -
+
  <%= theme.widgets.categories.title %>
diff --git a/layout/_widget/links.ejs b/layout/_widget/links.ejs index 97fe6b3..db7c793 100755 --- a/layout/_widget/links.ejs +++ b/layout/_widget/links.ejs @@ -1,4 +1,4 @@ -