diff options
author | Cassio Batista <cassio.batista.13@gmail.com> | 2019-06-12 17:29:03 +0300 |
---|---|---|
committer | Cassio Batista <cassio.batista.13@gmail.com> | 2019-06-12 17:29:07 +0300 |
commit | bdadd84af109a9ce537821f2d3194fa16a7958c4 (patch) | |
tree | 8e6c4dd67c1c2b1786b218d58d09e3143b5e63fe /README.md | |
parent | 07f765675dab2b00ad39aa460118edff2f2d3fcd (diff) |
doc: multilingual instructions included on README
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -121,6 +121,32 @@ This can be achieved by running the next command prior to calling Hugo: ``` See at [xor-gate/xor-gate.org](https://github.com/xor-gate/xor-gate.org) an example of how to add it to a continuous integration system. + +### Multilingual + +To allow Beautiful Hugo to go Multiliguagual you need to define the languages +you want to use inside the `languages` param on `config.toml` file: + +```toml +[languages] + [languages.en] + contentDir = "content/en" + [languages.ja] + contentDir = "content/ja" + [languages.br] + contentDir = "content/pt" +``` + +Now you just need to create a subdir within the `content/` folder for each +language you want to use and just put stuff inside `page/` and `post/` regular +dirs. +``` +content/ content/ content/ +└── en └── br └── ja + ├── page ├── page ├── page + └── post └── post └── post + +``` ### Extra shortcodes |