Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Several commits to update documentation #977

Merged
merged 7 commits into from
Sep 20, 2023
8 changes: 6 additions & 2 deletions exampleSite/content/docs/configuration/multilangual/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ images = []
navWeight = 960
+++

HBS supports multiple languages out of box, such as English, Simplified Chinese, Traditional Chinese, French, Russian etc.
HBS supports multiple languages out of box, such as English, Simplified Chinese, Traditional Chinese, French, Russian, etc.

You can add your own translations on: [hugo-theme-bootstrap/i18n](https://github.com/razonyang/hugo-theme-bootstrap/tree/master/i18n)

<!--more-->

Expand All @@ -33,7 +35,9 @@ HBS supports multiple languages out of box, such as English, Simplified Chinese,

> You'll need to specify the `languageDirection` as `rtl` for Right-to-left writing languages.
See also [Hugo Multilingual](https://gohugo.io/content-management/multilingual/).
See also [Hugo Multilingual](https://gohugo.io/content-management/multilingual/).*

> The parameter that controls the default language of the site must be located in the site configuration file. See `defaultContentLanguage` on [Site Configuration](https://hbs.razonyang.com/v1/en/docs/configuration/site/).
## Localization

Expand Down
4 changes: 2 additions & 2 deletions exampleSite/content/docs/configuration/site/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ The site configuration is located in `config/_default/config.toml` by default.
|---|:-:|:-:|---
| `title` | String | - | Site title.
| `baseURL` | String | - | Site base URL.
| `copyright` | String | - | Site copyright. The `{year}` placeholder will be replaced with this year.
| `defaultContentLanguage` | String | `en` |
| `copyright` | String | - | Site copyright. The `{year}` placeholder will be replaced with the current year.
| `defaultContentLanguage` | String | `en` | Default site's language.
| `defaultContentLanguageInSubdir` | Boolean | `false` |
| `paginate` | Integer | `10` |
| `paginatePath` | String | `page` |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
| English | `en` |
| Simplified Chinese | `zh-hans`(**Recommended**), `zh-cn` |
| Traditional Chinese | `zh-hant`(**Recommended**), `zh-tw`, `zh-hk` |
| Spanish | `es` |
| Arabic | `ar` |
| German | `de` |
| French | `fr` |
Expand Down