parent
dd04dac765
commit
765a6e3904
2 changed files with 18 additions and 28 deletions
@ -1,23 +1,11 @@ |
|||||||
<% if(post.author || config.author){ %> |
<% |
||||||
<div class='new-meta-item author'> |
if (post.author == undefined) { |
||||||
<% if (post.author) { %> |
post.author = theme.meta.author; |
||||||
<a href="<%- url_for(post.author.url) %>" rel="nofollow"> |
} |
||||||
<% if (post.author.avatar) { %> |
%> |
||||||
<img src="<%- post.author.avatar %>"> |
<div class='new-meta-item author'> |
||||||
<% } else { %> |
<a href="<%- post.author.url %>" rel="nofollow"> |
||||||
<i class="<%- theme.meta.author.icon %>" aria-hidden="true"></i> |
<img src="<%- post.author.avatar %>"> |
||||||
<% } %> |
<p><%- post.author.name %></p> |
||||||
<p><%- post.author.name %></p> |
</a> |
||||||
</a> |
</div> |
||||||
<% } else { %> |
|
||||||
<a href="<%- url_for(config.url) %>" rel="nofollow"> |
|
||||||
<% if (config.avatar) { %> |
|
||||||
<img src="<%- config.avatar %>"> |
|
||||||
<% } else { %> |
|
||||||
<i class="<%- theme.meta.author.icon %>" aria-hidden="true"></i> |
|
||||||
<% } %> |
|
||||||
<p><%- config.author %></p> |
|
||||||
</a> |
|
||||||
<% } %> |
|
||||||
</div> |
|
||||||
<% } %> |
|
||||||
|
Loading…
Reference in new issue