mirror of https://github.com/onweru/compose.git

Guillaume
15.19.2023 de033dc4a2d7ffc59e9d2ad12d1909574092b5fb
refs
author Guillaume <ltGuillaume@users.noreply.github.com>
Wednesday, February 15, 2023 16:19 +0100
committer Weru <fromweru@gmail.com>
Wednesday, February 15, 2023 21:54 +0100
commitde033dc4a2d7ffc59e9d2ad12d1909574092b5fb
tree d705679f13e48817d888163c97c7164a4af571d8 tree | zip | gz
parent 3a9e98145d51a262e7dadd24f261f68349fa7d83 view | diff
Dynamic localization for menus and logo click

- Instead of using `config/_default/menus/*.toml`, this allows the use of a single `menu.toml` with `identifier = '...'` and translations in `i18n/*.toml`, as specified in https://gohugo.io/content-management/multilingual/#dynamically-localizing-menus-with-i18n
- Clicking the logo will go to the landing page while remaining in the chosen translation
1 files modified
6 ■■■■ changed files
layouts/partials/nav.html 6 ●●●● diff | view | raw | blame | history