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

github.com/yihui/hugo-xmag.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYihui Xie <xie@yihui.name>2019-08-16 21:26:46 +0300
committerYihui Xie <xie@yihui.name>2019-08-16 21:26:46 +0300
commit26499570516666379466872b4d7d23eeb5bf94c4 (patch)
tree6bc6d11653d437c7170d07f94564ed18b8983086
parent369c49fc4cbd11109773895151edce464de7eded (diff)
use .RelPermalink instead of .URL
-rw-r--r--layouts/_default/list.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index cfa9c9b..77457ad 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -14,13 +14,13 @@
<a>{{ default "Uncategorized" .Site.Params.text.uncategorized }}</a>
{{ end }}
</div>
- <h1><a href="{{ .URL }}">{{ .Title }}</a></h1>
+ <h1><a href="{{ .RelPermalink }}">{{ .Title }}</a></h1>
<div class="date-author">
{{ if .Params.author }}<span class="author">{{ partial "author_names.html" . }}</span> / {{ end }}
<span class="date">{{ .Date.Format "2006-01-02" }}</span>
</div>
<div class="summary">
- <a href="{{ .URL }}">
+ <a href="{{ .RelPermalink }}">
{{ with .Params.thumbnail }}
<div class="thumbnail"><img src="{{ relURL . }}" alt="Thumbnail" /></div>
{{ else }}