fix: banner relative path
This commit is contained in:
parent
52bcfebe2c
commit
753b5a7b14
|
@ -1,14 +1,14 @@
|
||||||
<% if (post.link) { %>
|
<% if (post.link) { %>
|
||||||
<a href="<%- url_for(post.link) %>" target="_blank" itemprop="url">
|
<a href="<%- url_for(post.link) %>" target="_blank" itemprop="url">
|
||||||
<img src="<%- post.banner %>" class="article-banner" />
|
<img src="<%- url_for(post.banner) %>" class="article-banner" />
|
||||||
</a>
|
</a>
|
||||||
<% } else if (post.title) { %>
|
<% } else if (post.title) { %>
|
||||||
<% if (index) { %>
|
<% if (index) { %>
|
||||||
<a href="<%- url_for(post.path) %>" itemprop="url">
|
<a href="<%- url_for(post.path) %>" itemprop="url">
|
||||||
<img src="<%- post.banner %>" class="article-banner" />
|
<img src="<%- url_for(post.banner) %>" class="article-banner" />
|
||||||
</a>
|
</a>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<img src="<%- post.banner %>" class="article-banner" />
|
<img src="<%- url_for(post.banner) %>" class="article-banner" />
|
||||||
<% } %>
|
<% } %>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue