hexo-theme-amane/layout/common/post/banner.ejs

15 lines
470 B
Plaintext
Raw Normal View History

2016-02-02 16:19:44 +00:00
<% if (post.link) { %>
<a href="<%- url_for(post.link) %>" target="_blank" itemprop="url">
2016-02-28 11:09:26 +00:00
<img src="<%- url_for(post.banner) %>" class="article-banner" />
2016-02-02 16:19:44 +00:00
</a>
<% } else if (post.title) { %>
<% if (index) { %>
<a href="<%- url_for(post.path) %>" itemprop="url">
2016-02-28 11:09:26 +00:00
<img src="<%- url_for(post.banner) %>" class="article-banner" />
2016-02-02 16:19:44 +00:00
</a>
<% } else { %>
2016-02-28 11:09:26 +00:00
<img src="<%- url_for(post.banner) %>" class="article-banner" />
2016-02-02 16:19:44 +00:00
<% } %>
<% } %>