diff options
author | Srinivasan Rangarajan <srinivasanr@gmail.com> | 2020-05-23 00:04:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-23 00:04:20 +0300 |
commit | 91776716bc8f33df5fb299797844f5935d0dea42 (patch) | |
tree | 5c4319201b8effbd8a1806b7ca44c78c309f3b3b | |
parent | 66e1d33717e7672a37a734637282552eedaadad7 (diff) |
add a trailing slash to tags url
When creating the URL for the tags, it's missing a slash after the "tags" word.
From the template docs https://gohugo.io/functions/absurl/#readout
absURL and relURL are smart about missing slashes, but they will not add a closing slash to a URL if it is not present.
-rw-r--r-- | layouts/_default/single.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 687a0e1..628e43f 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -10,7 +10,7 @@ {{ with .Params.tags }} <ul class="tags"> {{ range . }} - <li> <a href="{{ "tags" | absURL }}{{ . | urlize }}">{{ . }}</a> </li> + <li> <a href="{{ "tags/" | absURL }}{{ . | urlize }}">{{ . }}</a> </li> {{ end }} </ul> {{ end }} |