Преглед на файлове

fix: banner relative path

ppoffice преди 9 години
родител
ревизия
753b5a7b14
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      layout/common/post/banner.ejs

+ 3 - 3
layout/common/post/banner.ejs

@@ -1,14 +1,14 @@
 <% if (post.link) { %>
 	<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>
 <% } else if (post.title) { %>
 	<% if (index) { %>
 		<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>
 	<% } else { %>
-		<img src="<%- post.banner %>" class="article-banner" />
+		<img src="<%- url_for(post.banner) %>" class="article-banner" />
 	<% } %>
 <% } %>