-
How can I change a language's url? For example, I want to change 'en' into 'en-us', and I can access my site in this language in .../en-us but not .../en. |
Beta Was this translation helpful? Give feedback.
Answered by
razonyang
Jan 31, 2022
Replies: 3 comments 4 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Smiog
-
If I don't wanna keep these posts, how can I delete them? |
Beta Was this translation helpful? Give feedback.
1 reply
-
What's more, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Change
[en]
to[en-us]
.hugo-theme-bootstrap/exampleSite/config/_default/languages.toml
Line 1 in 47729f6
Change the default language to
en-us
if necessary.hugo-theme-bootstrap/exampleSite/config/_default/config.toml
Line 7 in 47729f6
Modify the content filename or folder name if necessary, for example:
index.en.md
toindex.en-us.md
,content/en
tocontent/en-us
.