Explorar o código

posts widget: Fix image link

George Cushen %!s(int64=8) %!d(string=hai) anos
pai
achega
74de372781
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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>