Browse Source

Fix external link on pages list (#153)

Joseph Ting 6 năm trước cách đây
mục cha
commit
4c2cd91048
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      layouts/partials/list.html

+ 1 - 1
layouts/partials/list.html

@@ -11,7 +11,7 @@
     {{ range .Paginator.Pages }}
     <li>
       <span class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
-      <a class="title" href="{{ .URL }}">{{ .Title }}</a>
+      <a class="title" href="{{ .Params.ExternalLink | default .URL }}">{{ .Title }}</a>
     </li>
     {{ end }}
   </ul>