Hello everyone,
I want to use .getTerms
with a term with accent.
Status is a taxonomy.
I have removePathAccents: true
in config
# /content/persons/john-doe.md
title: John Doe
status: Associé
# /content/status/associe.md
title: Associé
Code to display terms in a person page:
{{ with .GetTerms }}
{{.}} # Page(/status/associé), he can't find the page
{{ end }}
I was hoping he would look for the page without the accent:
Page(/status/associe)
Is this normal? Should I do something else?
Thanks a lot,
Seb
I am unable to reproduce the problem as descibed. Or perhaps I don’t understand the problem. Try it:
git clone --single-branch -b hugo-forum-topic-52927 https://github.com/jmooring/hugo-testing hugo-forum-topic-52927
cd hugo-forum-topic-52927
hugo server
@jmooring please rename the directory “associé” to “associe”.
Then add a description to the status to try display it in post page.
OK @jmooring, I see where you’re going with this, it’s more the fact that I clean the accents on the Decap CMS (slug type) side that’s wrong? Should I leave the accents on the folders? I would prefer to clean the folder names to avoid side effects.
Yes. File and directory names should retain the accents. The removePathAccents
configuration option affects the Permalink
and RelPermalink
values.
thanks a lot and happy birthday @jmooring
2 Likes