瀏覽代碼

posts widget: Fix image link

George Cushen 8 年之前
父節點
當前提交
74de372781
共有 1 個文件被更改,包括 1 次插入1 次删除
  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">
 <div class="article-list-item" itemscope itemprop="blogPost">
   {{ if $post.Params.image }}
   {{ if $post.Params.image }}
-  <a href="{{ .Permalink }}">
+  <a href="{{ $post.Permalink }}">
     <img src="{{ "/img/" | relURL }}{{ $post.Params.image }}" class="article-banner"
     <img src="{{ "/img/" | relURL }}{{ $post.Params.image }}" class="article-banner"
     itemprop="image">
     itemprop="image">
   </a>
   </a>