diff options
author | Yihui Xie <xie@yihui.name> | 2019-08-16 21:26:46 +0300 |
---|---|---|
committer | Yihui Xie <xie@yihui.name> | 2019-08-16 21:26:46 +0300 |
commit | 26499570516666379466872b4d7d23eeb5bf94c4 (patch) | |
tree | 6bc6d11653d437c7170d07f94564ed18b8983086 | |
parent | 369c49fc4cbd11109773895151edce464de7eded (diff) |
use .RelPermalink instead of .URL
-rw-r--r-- | layouts/_default/list.html | 4 |
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 }} |