From 546384f1b9f35c235a781468939b2f740d31ab3d Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sun, 23 Dec 2018 15:30:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=87=AA=E5=B7=B1=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=88=97=E8=A1=A8=E7=B1=BB=E4=BE=A7=E8=BE=B9=E6=A0=8F?= =?UTF-8?q?=E6=8E=A7=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/_partial/side.ejs | 12 ++++++++++-- layout/_widget/author.ejs | 2 +- layout/_widget/categories.ejs | 2 +- layout/_widget/links.ejs | 2 +- layout/_widget/music.ejs | 2 +- layout/_widget/tagcloud.ejs | 2 +- layout/_widget/toc.ejs | 2 +- source/less/_toc.less | 2 +- source/less/_widget.less | 36 +++++++++++++++++++++++++++-------- 9 files changed, 45 insertions(+), 17 deletions(-) diff --git a/layout/_partial/side.ejs b/layout/_partial/side.ejs index ecd00ab..0cb775f 100755 --- a/layout/_partial/side.ejs +++ b/layout/_partial/side.ejs @@ -4,7 +4,7 @@ <% } %> <% if (config.widgets){ %> <% (config.widgets||[]).forEach(function(item){ %> -
+
'> <% if(item.icon && item.title) { %>
  <%= item.title %>
@@ -15,7 +15,15 @@
<%} %>
- <%- item.body %> + <% if(item.type == 'list') { %> +
    + <% (item.rows||[]).forEach(function(row){ %> +
  • <%= row.name %>
    + <% }) %> +
+ <% } else { %> + <%- item.body %> + <% } %>
<% }) %> diff --git a/layout/_widget/author.ejs b/layout/_widget/author.ejs index a2f4d15..8b7804c 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 723d691..89f03bd 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 db7c793..afb53c0 100755 --- a/layout/_widget/links.ejs +++ b/layout/_widget/links.ejs @@ -1,4 +1,4 @@ -