Rule of Configuration Override

Language Configuration > Site Configuration > Default Configuration

  • Language Configuration: Because it supports multiple languages, different languages can configure different parameters respectively
  • Site Configuration: Configure the language-neutral global parameters
  • Default Configuration: Including the default configuration of theme module and plugin modules

Site Configuration

  • Enter the page Settings/CMS:

1

  • Click Site/Config, enter the page Site Configuration:

2

  • Click i on the right to check the Default Configuration:

3

  • Copy the properties that need to be modified from the default configuration to the site configuration, and modify them to our required values

Here, we modify the properties as follows:

{
 "host": {
    "url": "http://example.com",
    "rootPath": ""
  },
  "language": {
    "default": "en-us",
    "items": "en-us,zh-cn"
  },
  "themes": {
    "en-us": "cms-themeblog",
    "zh-cn": "cms-themeblog"
  },
  "plugins": {
    "cms-plugintrack": {
      "track": {
        "google": "",
        "baidu": "",
        "qq": ""
      }
    }
  }
}
  • host
Name Type Default Description
url String site domain when actually deployed
rootPath String empty the root path, generally not set
  • languange
Name Type Default Description
default String en-us the default language. static files rendered by the default language are located at the root-path of the site, and other languages are located at root-path/{language} of the site
items String en-us list of supported languages, separated by commas
  • themes
Name Type Default Description
en-us String cms-themeblog the theme module name used by the language of English
zh-cn String cms-themeblog the theme module name used by the language of Chinese
  • plugins: configurations of all plugin modules
  • cms-plugintrack:configuration of the specific plugin module
Name Type Default Description
google Google stats tracking code
baidu Baidu stats tracking code
qq QQ stats tracking code

Language Configuration

You can also configure parameters for different languages, here we just skip over