parent
2716c0036a
commit
9dfcd4adef
1 changed files with 19 additions and 8 deletions
@ -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> |
||||
<% } %> |
||||
|
Loading…
Reference in new issue