You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm migrating an existing website to Hugo and using this theme. Everything is going great, but I found what appears to be a bug in the generation of tag links in single pages.
To prevent dead links, I have customized my tag and category URLs:
Although category links are generated correctly, and tag links are generated correctly in the sidebar, links under individual posts are not generated according to the configuration.
I looked at the sources and it appears that the issue stems from the post_tags.html:
I'm not very familiar with the Hugo programming syntax, but it looks to me like the URL is built using the hard-coded tags path instead of using the permalink built by Hugo, which is apparently what is done for categories:
{{- with $.Site.GetPage (printf "/%s/%s" $taxo $path) }}
{{- if gt $index 0 }}, {{ end -}}
<a class="meta__link" href="{{ .RelPermalink }}" rel="category">{{ .Title }}</a>
{{- end }}
The text was updated successfully, but these errors were encountered:
...it looks to me like the URL is built using the hard-coded tags path instead of using the permalink built by Hugo, which is apparently what is done for categories
I think there was a reason for that. 🤔
Sorry, my head is full of other things and I have no time to check it now, but If you plan to do PR, please read the contributing guidelines and test everything carefully.
To prevent dead links, I have customized my tag and category URLs:
I'm migrating an existing website to Hugo and using this theme. Everything is going great, but I found what appears to be a bug in the generation of tag links in single pages.
To prevent dead links, I have customized my tag and category URLs:
Although category links are generated correctly, and tag links are generated correctly in the sidebar, links under individual posts are not generated according to the configuration.
I looked at the sources and it appears that the issue stems from the
post_tags.html
:I'm not very familiar with the Hugo programming syntax, but it looks to me like the URL is built using the hard-coded
tags
path instead of using the permalink built by Hugo, which is apparently what is done for categories:The text was updated successfully, but these errors were encountered: