mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-22 14:35:43 -06:00
This commit is contained in:
parent
ef71d07bc3
commit
be7c4e8a8b
4 changed files with 13 additions and 13 deletions
|
@ -26,10 +26,10 @@ The config files that ship with Blowfish contain all of the possible settings th
|
|||
|
||||
## Basic configuration
|
||||
|
||||
Before creating any content, there are a few things you should set for a new installation. Starting in the `config.toml` file, set the `baseURL` and `languageCode` parameters. The `languageCode` should be set to the main language that you will be using to author your content.
|
||||
Before creating any content, there are a few things you should set for a new installation. Starting in the `hugo.toml` file, set the `baseURL` and `languageCode` parameters. The `languageCode` should be set to the main language that you will be using to author your content.
|
||||
|
||||
```toml
|
||||
# config/_default/config.toml
|
||||
# config/_default/hugo.toml
|
||||
|
||||
baseURL = "https://your_domain.com/"
|
||||
languageCode = "en"
|
||||
|
@ -40,7 +40,7 @@ The next step is to configure the language settings. Although Blowfish supports
|
|||
Locate the `languages.en.toml` file in the config folder. If your main language is English you can use this file as is. Otherwise, rename it so that it includes the correct language code in the filename. For example, for French, rename the file to `languages.fr.toml`.
|
||||
|
||||
{{< alert >}}
|
||||
Note that the language code in the language config filename should match the `languageCode` setting in `config.toml`.
|
||||
Note that the language code in the language config filename should match the `languageCode` setting in `hugo.toml`.
|
||||
{{< /alert >}}
|
||||
|
||||
```toml
|
||||
|
|
|
@ -26,10 +26,10 @@ The config files that ship with Blowfish contain all of the possible settings th
|
|||
|
||||
## Basic configuration
|
||||
|
||||
Before creating any content, there are a few things you should set for a new installation. Starting in the `config.toml` file, set the `baseURL` and `languageCode` parameters. The `languageCode` should be set to the main language that you will be using to author your content.
|
||||
Before creating any content, there are a few things you should set for a new installation. Starting in the `hugo.toml` file, set the `baseURL` and `languageCode` parameters. The `languageCode` should be set to the main language that you will be using to author your content.
|
||||
|
||||
```toml
|
||||
# config/_default/config.toml
|
||||
# config/_default/hugo.toml
|
||||
|
||||
baseURL = "https://your_domain.com/"
|
||||
languageCode = "en"
|
||||
|
@ -40,7 +40,7 @@ The next step is to configure the language settings. Although Blowfish supports
|
|||
Locate the `languages.en.toml` file in the config folder. If your main language is English you can use this file as is. Otherwise, rename it so that it includes the correct language code in the filename. For example, for French, rename the file to `languages.fr.toml`.
|
||||
|
||||
{{< alert >}}
|
||||
Note that the language code in the language config filename should match the `languageCode` setting in `config.toml`.
|
||||
Note that the language code in the language config filename should match the `languageCode` setting in `hugo.toml`.
|
||||
{{< /alert >}}
|
||||
|
||||
```toml
|
||||
|
|
|
@ -26,10 +26,10 @@ The config files that ship with Blowfish contain all of the possible settings th
|
|||
|
||||
## Basic configuration
|
||||
|
||||
Before creating any content, there are a few things you should set for a new installation. Starting in the `config.toml` file, set the `baseURL` and `languageCode` parameters. The `languageCode` should be set to the main language that you will be using to author your content.
|
||||
Before creating any content, there are a few things you should set for a new installation. Starting in the `hugo.toml` file, set the `baseURL` and `languageCode` parameters. The `languageCode` should be set to the main language that you will be using to author your content.
|
||||
|
||||
```toml
|
||||
# config/_default/config.toml
|
||||
# config/_default/hugo.toml
|
||||
|
||||
baseURL = "https://your_domain.com/"
|
||||
languageCode = "en"
|
||||
|
@ -40,7 +40,7 @@ The next step is to configure the language settings. Although Blowfish supports
|
|||
Locate the `languages.en.toml` file in the config folder. If your main language is English you can use this file as is. Otherwise, rename it so that it includes the correct language code in the filename. For example, for French, rename the file to `languages.fr.toml`.
|
||||
|
||||
{{< alert >}}
|
||||
Note that the language code in the language config filename should match the `languageCode` setting in `config.toml`.
|
||||
Note that the language code in the language config filename should match the `languageCode` setting in `hugo.toml`.
|
||||
{{< /alert >}}
|
||||
|
||||
```toml
|
||||
|
|
|
@ -26,21 +26,21 @@ Blowfish 中的配置文件中包含了主题需要的所有可能的设置选
|
|||
|
||||
## 基础设置
|
||||
|
||||
在刚刚安装完成,创建内容之前,有几个设置需要关注。从 `config.toml` 开始,设置 `baseURL` 和 `languageCode` 参数。`languageCode`参数是用来指定你创作内容的主要语言。
|
||||
在刚刚安装完成,创建内容之前,有几个设置需要关注。从 `hugo.toml` 开始,设置 `baseURL` 和 `languageCode` 参数。`languageCode`参数是用来指定你创作内容的主要语言。
|
||||
|
||||
```toml
|
||||
# config/_default/config.toml
|
||||
# config/_default/hugo.toml
|
||||
|
||||
baseURL = "https://your_domain.com/"
|
||||
languageCode = "en"
|
||||
```
|
||||
|
||||
下一步是设置语言。尽管 Blowfish 支持多语言,但是 `config.toml` 只能配置一个主语言。
|
||||
下一步是设置语言。尽管 Blowfish 支持多语言,但是 `hugo.toml` 只能配置一个主语言。
|
||||
|
||||
在 `config/_default` 文件夹中找到 `languages.en.toml`。如果你的主语言是英语,你可以直接使用此文件。否则需要重命名为主语言对应的文件名。例如,如果主语言是法语,那么需要将文件命名为 `languages.fr.toml`。
|
||||
|
||||
{{< alert >}}
|
||||
注意:语言配置文件名中的语言代码需要与 `config.toml` 中 `languageCode` 相匹配。
|
||||
注意:语言配置文件名中的语言代码需要与 `hugo.toml` 中 `languageCode` 相匹配。
|
||||
{{< /alert >}}
|
||||
|
||||
```toml
|
||||
|
|
Loading…
Reference in a new issue