diff --git a/layout/_widget/author.ejs b/layout/_widget/author.ejs index df28a4a..b2bc7fb 100755 --- a/layout/_widget/author.ejs +++ b/layout/_widget/author.ejs @@ -1,6 +1,6 @@ <% if(theme.widgets.author.enable != false) { %>
- <% if(theme.widgets.author.avatar == true && config.avatar.length) { %> + <% if(theme.widgets.author.avatar == true && config.avatar) { %>
@@ -15,7 +15,7 @@ <% } %> <% } %> - <% if (theme.widgets.author.social == true && config.social.length){ %> + <% if (theme.widgets.author.social == true && config.social){ %>
<% (config.social||[]).forEach(function(value){ %> <% if (value.url && value.icon) { %>