Browse Source

posts widget: Fix image link

George Cushen 8 năm trước cách đây
mục cha
commit
74de372781
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      layouts/partials/post_li.html

+ 1 - 1
layouts/partials/post_li.html

@@ -3,7 +3,7 @@
 
 <div class="article-list-item" itemscope itemprop="blogPost">
   {{ if $post.Params.image }}
-  <a href="{{ .Permalink }}">
+  <a href="{{ $post.Permalink }}">
     <img src="{{ "/img/" | relURL }}{{ $post.Params.image }}" class="article-banner"
     itemprop="image">
   </a>