mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 18:18:37 +00:00
1 parent
8500ee417f
commit
b715e84073
1 file changed
+13
-1
@@ -568,7 +568,19 @@ If there is more than one language defined, the `LanguagePrefix` variable will e
|
|||||||
|
|
||||||
## Generate multilingual content with `hugo new`
|
## Generate multilingual content with `hugo new`
|
||||||
|
|
||||||
Currently, `hugo new` is not ready to support generating multilingual content. But there is a [proposal topic](https://github.com/gohugoio/hugo/issues/7732) about this in GitHub issue to discuss how it should work.
|
If you organize content with translations in the same directory:
|
||||||
|
|
||||||
|
```text
|
||||||
|
hugo new post/test.en.md
|
||||||
|
hugo new post/test.de.md
|
||||||
|
```
|
||||||
|
|
||||||
|
If you organize content with translations in different directories:
|
||||||
|
|
||||||
|
```text
|
||||||
|
hugo new content/en/post/test.md
|
||||||
|
hugo new content/de/post/test.md
|
||||||
|
```
|
||||||
|
|
||||||
[abslangurl]: /functions/abslangurl
|
[abslangurl]: /functions/abslangurl
|
||||||
[config]: /getting-started/configuration/
|
[config]: /getting-started/configuration/
|
||||||
|
|||||||
Reference in new issue
Block a user