diff --git a/layout/_widget/author.ejs b/layout/_widget/author.ejs index b2bc7fb..2aacd67 100755 --- a/layout/_widget/author.ejs +++ b/layout/_widget/author.ejs @@ -1,28 +1,28 @@ <% if(theme.widgets.author.enable != false) { %> -
- <% if(theme.widgets.author.avatar == true && config.avatar) { %> -
- -
- <%} %> - <% if (theme.widgets.author.title == true || theme.widgets.author.motto == true){ %> -
- <% if (theme.widgets.author.title == true){ %> -

<%= config.title %>

- <% } %> - <% if (theme.widgets.author.motto){ %> -

<%= config.motto %>

- <% } %> -
+
+ <% if(theme.widgets.author.avatar) { %> +
+ +
+ <%} %> + <% if (theme.widgets.author.title == true || theme.widgets.author.motto == true){ %> +
+ <% if (theme.widgets.author.title == true){ %> +

<%= config.title %>

<% } %> - <% if (theme.widgets.author.social == true && config.social){ %> - + <% if (theme.widgets.author.motto){ %> +

<%= config.motto %>

<% } %> -
+ + <% } %> + <% if (theme.widgets.author.social == true && config.social){ %> +
+ <% (config.social||[]).forEach(function(value){ %> + <% if (value.url && value.icon) { %> + + <%}%> + <%})%> +
+ <% } %> +
<% } %>