Hugo: Remove Accented Characters from URLs

Created on 28 Jun 2015  路  2Comments  路  Source: gohugoio/hugo

Hi!

I'm trying to move my personal blog from Jekyll to Hugo but I'm having a simple (I think) problem. Hugo generates the URL like this "post/apresenta莽茫o/" but I want "post/apresentacao" with everything escaped.

How do I do that?

Thanks =D

Most helpful comment

You have to use the latest Hugo 0.15 DEV (source) and set

removePathAccents = true

In site config.

If you search for accents in this project, you will find a long story. Then you will notice that people from Japan have to keep the accents intact.

http://discuss.gohugo.io/ is a better place for questions.

All 2 comments

You have to use the latest Hugo 0.15 DEV (source) and set

removePathAccents = true

In site config.

If you search for accents in this project, you will find a long story. Then you will notice that people from Japan have to keep the accents intact.

http://discuss.gohugo.io/ is a better place for questions.

Thanks.

Was this page helpful?
0 / 5 - 0 ratings