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 @@ -