On my (multilingual) website I have a landing-page which is reacheable under example.com/en/landingpage-slug/.
I would like to make it available under example.com/landingpage-slug/.
Any idea how to configure this?
On my (multilingual) website I have a landing-page which is reacheable under example.com/en/landingpage-slug/.
I would like to make it available under example.com/landingpage-slug/.
Any idea how to configure this?
Hi,
You can configure your default language, which will then render under /
: https://gohugo.io/content-management/multilingual/#configure-languages
Thats a good workaround, but landingpages exist not only for the default language but also other languages. How to deal with that?
Well, /
can’t both be en
and de
, for example.
I want this only for pages of a special folder to be rendered into /
. The slugs will be unique for all languages. Any suggestions?
Could you post a map to show what pages should render to what url? Better yet, do you have a sample repo to show what you are trying to do?
I organized my content in the following directory-structure within content:
The URLs render nicely in the following permalinks:
But I would like it to be rendered like the following:
I thought permalink
in the frontmatter should do it. But it doesn’t.
You could try defining aliases: URL management | Hugo
Awesome, @pointyfar. It works!