Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/yihui/hugo-xmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYihui Xie <xie@yihui.name>2019-04-18 21:44:29 +0300
committerYihui Xie <xie@yihui.name>2019-04-18 21:44:29 +0300
commitd7e19b268c311759dc7edae9916774521ef1b2f8 (patch)
treee1ec487c874a9bd4a7b12f3eb03872b76b9806d8
parent985e481c2790ecd96f0f6dab9a6ebe7f16e141d8 (diff)
.URL has been deprecated in a recent version of Hugo
-rw-r--r--layouts/_default/list.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 70ab4e8..f8a1e05 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -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>