To enable/disable the multi language button in the footer, edit the parameter enableLangChange
in params.toml
. The default language of this theme is English. If you want to use another language, follow these steps
Make a menu file.
root โโโ config โย ย โโโ _default โย ย โย ย โโโ ... โย ย โย ย โโโ menus.ko.toml
1 2 3 4 5 6 7 8 9 10 11 12
[[main]] identifier = "about" name = "about" url = "/about/" weight = 1 [[main]] identifier = "archive" name = "archive" url = "/archive/" weight = 2 ...
Make a language-code folder. Then make a content file.
root/content/ko/markdown-syntax.md root/content/ko/hugo-blog.md ...
I made a
ko
folder in thecontent
folder. In that way, we can easily organize our content by language.Make an i18n file.
1 2 3 4 5 6 7 8 9
[search-placeholder] other = "๊ฒ์..." [summary-dateformat] other = "2006๋ 01์ 02์ผ" [tags] other = "ํ๊ทธ" ...
We already have some i18n files. If there is your language among them, this process can be omitted.
- en
- eo
- fa
- fr
- ko
- zh
Edit config.toml file.
1 2 3
defaultContentLanguage = "ko" defaultContentLanguageInSubdir = true hasCJKLanguage = true