[SOLVED] Taxonomy text links same as my front matter

I have this taxonomy structure:

http://localhost:1313/blog/destination/germany/
http://localhost:1313/blog/destination/japan/
http://localhost:1313/blog/destination/uk/

The link text for each link shows: Germany, Japan but UK shows up as Uk and not UK, I have set the taxonomy to UK but it doesn’t output it as I wanted. I want to keep the URL’s lowercase but the link text to be the same as my front matter. My site’s title also shows Uk

Front matter:
destination: "UK"

Taxonomy links:
{{ with .Params.destination }}<a href="/blog/destination{{ . | urlize | relLangURL }}">{{ . }}</a>{{ end }}

Title tag:
<title>{{ .Site.Title }} - {{ .Title }}</title>

I tried to look at the config.toml documentation but wasn’t able to find what I was looking for.

Thanks in advance for any help.

Anyone able to help? I just can’t find away to get it to work :-/

HI,

try to set

preserveTaxonomyNames = true

in the config file.

Use the title function: https://gohugo.io/functions/title/#readout

BINGO!! Thank you so much!:sweat_smile: High five!

Nice one I will look in to this also. Thank you