mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 10:18:40 +00:00
Simplify writing
This commit is contained in:
1 parent
9b30e81b93
commit
85e50325c7
1 file changed
+1
-1
@@ -510,7 +510,7 @@ The rendering of the main navigation works as usual. `.Site.Menus` will just con
|
|||||||
### Dynamically localizing menus with i18n
|
### Dynamically localizing menus with i18n
|
||||||
While customizing menus per language is useful, your config file can become hard to maintain if you have a lot of languages
|
While customizing menus per language is useful, your config file can become hard to maintain if you have a lot of languages
|
||||||
|
|
||||||
If your menus are the same in all languages, and the only thing that changes is the actual translation, you can use the menu `.Identifier` as a translation key for the name of the the menu:
|
If your menus are the same in all languages (ie. if the only thing that changes is the translated name) you can use the `.Identifier` as a translation key for the menu name:
|
||||||
|
|
||||||
{{< code-toggle file="config" >}}
|
{{< code-toggle file="config" >}}
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
|
|||||||
Reference in new issue
Block a user