H
H
hitakiri2019-11-19 19:33:42
go
hitakiri, 2019-11-19 19:33:42

How to transliterate tags in Hugo?

Good time.
I came across such a problem when generating a site using Hugo :
When creating a tag for a post in Russian, for example:
tags: ["спорт", "Активный отдых"]
The generator automatically creates the "sport" and "active-rest" folders, as well as links to tags:

mysite.local/tags/спорт
mysite.local/tags/активный-отдых

Those. Hugo does some transformations on the tag name ( Active rest != active-rest ), but I can't find where it is possible to enable transliteration of such links ie. active-leisure => aktivnyj-otdykh .
Maybe someone faced a similar problem, thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Snayp, 2020-03-12
@snayp

Good afternoon! Apparently, you want to change this setting in the config:

removePathAccents = true  # Workaround for https://github.com/gohugoio/hugo/issues/5687

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question