.URL has been deprecated in a recent version of Hugo
authorYihui Xie <xie@yihui.name>
Thu, 18 Apr 2019 18:44:29 +0000 (13:44 -0500)
committerYihui Xie <xie@yihui.name>
Thu, 18 Apr 2019 18:44:29 +0000 (13:44 -0500)
layouts/_default/list.html

index 70ab4e871c86bb70edcc8f928662f84b3add3a21..f8a1e053e2152bf860989efdcdcd95527d01254f 100644 (file)
@@ -10,7 +10,7 @@
   {{ range (where .Data.Pages "Section" "!=" "") }}
   <li>
     <span class="date">{{ .Date.Format "2006/01/02" }}</span>
-    <a href="{{ .URL }}">{{ .Title | markdownify }}</a>
+    <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
   </li>
   {{ end }}
 </ul>