ソースを参照

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">
   {{ if $post.Params.image }}
-  <a href="{{ .Permalink }}">
+  <a href="{{ $post.Permalink }}">
     <img src="{{ "/img/" | relURL }}{{ $post.Params.image }}" class="article-banner"
     itemprop="image">
   </a>