-
Hello, can you help me understand this documentation? I have the following (shortened) configuration. My goal is to put direct shortcut to French or English home page in the menu when viewing the site in the other language, rather than using the language selector I may disable. Default language is "fr" so "/en" url works, but when switching language to English, there is no correct url to go to French home page. According to the documentation, I tried to define url = "/home-fr" or "/home-en" in the _index.md (section index page). EDIT: Found something interesting: Thanks for helping,
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Quite tricky. It worked for me in the exampleSite by adding [[languages.en.menu.shortcuts]]
name = "<i class='fas fa-fw fa-skull-crossbones'></i> Piratish Docs"
url = "../pir/"
weight = 50
[[languages.pir.menu.shortcuts]]
name = "<i class='fas fa-fw fa-puzzle-piece'></i> Boring Docs"
url = "../en/"
weight = 50 Note to exchange |
Beta Was this translation helpful? Give feedback.
Quite tricky.
It worked for me in the exampleSite by adding
Note to exchange
pageRef
withurl
in this case.