Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xaoxuu committed Sep 2, 2019
1 parent 2716c00 commit 9dfcd4a
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions layout/_meta/author.ejs
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
<% if(post.author || config.author){ %>
<div class='new-meta-item author'>
<a href="<%- url_for(post.author_url||config.url) %>" rel="nofollow">
<% if (post.avatar || config.avatar) { %>
<img src="<%- post.avatar || config.avatar %>">
<% } else { %>
<i class="fas fa-user" aria-hidden="true"></i>
<% } %>
<p><%- post.author || config.author %></p>
</a>
<% if (post.author) { %>
<a href="<%- url_for(post.author.url) %>" rel="nofollow">
<% if (post.author.avatar) { %>
<img src="<%- post.author.avatar %>">
<% } else { %>
<i class="fas fa-user" aria-hidden="true"></i>
<% } %>
<p><%- post.author.name %></p>
</a>
<% } else { %>
<a href="<%- url_for(config.url) %>" rel="nofollow">
<% if (config.avatar) { %>
<img src="<%- config.avatar %>">
<% } else { %>
<i class="fas fa-user" aria-hidden="true"></i>
<% } %>
<p><%- config.author %></p>
</a>
<% } %>
</div>
<% } %>

0 comments on commit 9dfcd4a

Please sign in to comment.