Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/halogenica/beautifulhugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCassio Batista <cassio.batista.13@gmail.com>2019-06-12 17:29:03 +0300
committerCassio Batista <cassio.batista.13@gmail.com>2019-06-12 17:29:07 +0300
commitbdadd84af109a9ce537821f2d3194fa16a7958c4 (patch)
tree8e6c4dd67c1c2b1786b218d58d09e3143b5e63fe /README.md
parent07f765675dab2b00ad39aa460118edff2f2d3fcd (diff)
doc: multilingual instructions included on README
Diffstat (limited to 'README.md')
-rw-r--r--README.md26
1 files changed, 26 insertions, 0 deletions
diff --git a/README.md b/README.md
index 63657e9..8b8c04a 100644
--- a/README.md
+++ b/README.md
@@ -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