From 9dfcd4adef89fb7745f385e3e917830e58ad8aa3 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Mon, 2 Sep 2019 10:12:33 +0800 Subject: [PATCH] update --- layout/_meta/author.ejs | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/layout/_meta/author.ejs b/layout/_meta/author.ejs index 180a3ec07..409d1592a 100755 --- a/layout/_meta/author.ejs +++ b/layout/_meta/author.ejs @@ -1,12 +1,23 @@ <% if(post.author || config.author){ %>
- - <% if (post.avatar || config.avatar) { %> - - <% } else { %> - - <% } %> -

<%- post.author || config.author %>

-
+ <% if (post.author) { %> + + <% if (post.author.avatar) { %> + + <% } else { %> + + <% } %> +

<%- post.author.name %>

+
+ <% } else { %> + + <% if (config.avatar) { %> + + <% } else { %> + + <% } %> +

<%- config.author %>

+
+ <% } %>
<% } %>