Skip to content

Commit

Permalink
Fix #29 (href link in terms.html doesn't work)
Browse files Browse the repository at this point in the history
The href link in terms.html was created with the exact string in
.Site.BaseURL for example "www.example.com". If the BaseURL had no slash
at the end, the link was mistakenly created as follows:
"www.example.comtags/term/"

This bug has now been fixed.
  • Loading branch information
dataCobra committed Sep 11, 2020
1 parent 6418eda commit 3f4b60e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/terms.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ <h2 class="page-title">{{ .Name }}</h2>
<div class="tag-cloud">
{{ $data := .Data }}
{{ range $key, $value := .Data.Terms.ByCount }}
<a href="{{ $.Site.LanguagePrefix | absURL }}{{ $data.Plural }}/{{ $value.Name | urlize }}/">{{ $value.Name }}<sup>{{ $value.Count }}</sup></a>
<a href="{{ absURL $data.Plural }}/{{ $value.Name }}/">{{ $value.Name }}<sup>{{ $value.Count }}</sup></a>
{{ end }}
</div>
{{ end }}

0 comments on commit 3f4b60e

Please sign in to comment.