When I click on the C# tag, page 404 appears. How did I figure it out that the " # " symbol is specific. How is this resolved?
Thanks for bringing this up. I'll need to investigate this and report back!
@GhostBasenji I was doing some digging and it seems like certain characters don't work well with Hugo/YAML and it's unfortunately not just a limitation of this theme. The problem is that certain characters are reserved according to the RFC Standard
https://discourse.gohugo.io/t/sanitizing-category-names/11087
https://github.com/gohugoio/hugo/issues/4519
https://discourse.gohugo.io/search?q=special%20characters%20in%20url
I was wondering did C# work you before in another theme?
There are... For example, this... https://github.com/GhostBasenji/blog-src and https://github.com/GhostBasenji/blog-src/blob/master/themes/notepadium/layouts/partials/note-list.html (or https://github.com/cntrump/hugo-notepadium)
Or as a solution, can leave C# in the tags, and in the address bar like this: /tag/c.
@GhostBasenji Thanks I will check how they circumvent the issue.
It appears as they simply replace the problematic characters:
{{- range .Params.tags -}}
{{- $tag := replace . "#" "%23" -}}
{{- $tag = replace $tag "." "%2e" -}}
{{- $url := print "/tags/" ($tag | urlize) "/" -}}
<a class="tag" href="{{- $url | relLangURL -}}">{{- . -}}</a>
{{- end -}}