Hi, I am new to the forum and Grav itself, but I liked so much the project that I decided to start renewing my website with it.
I looked into the documentation as well as the Cookbook and some issues tracking regarding Multi Language topic, but I would need the guide of an expert user to correctly set it up.
What I want to achieve: I have a blog in Italian and I would like to translate only some pages in English (meaning not all pages will have a translation into English).
Where I am so far:
- Site domain is unique (.com)
- I use latest version of Grav and Multi-Language plugin
- I created a child theme for Clean Blog theme to be able to override some settings without compromising the original code during updates.
- In config.system.yaml I set up the languages supported "it" and "en" (ordered as Italian is my preferred language)
- In the same config.system.yaml file the home alias is /home and is set to true the hide_in_urls parameter
- my current folder structure is as per the original theme
01.home
/classifica-avulsa
item.it.md (slug: cla ssifica-avulsa-con-excel) or should I use simply item.md
item.en.md (slug: tie-breaker-with-excel)
I placed a notice paragraph at the top of each page with a link to switch language
The code in the item.it.md is:
!! read this article in [**English**](../en/tie-breaker-with-excel "Leggi in inglese")
Should I not put the "../" the link will redirect to .com/classifica-avulsa-con-excel/en/tie-breaker-with-excel
With the above works fine
The code in the item.en.md is:
!! Leggi questo articolo in [**Italiano**](.com/classifica-avulsa-con-excel "Read in Italian")
I cannot get it to work with slug or routing. The current workaround I don't like is to put the Italian url version directly as the link
Can someone point me in the right direction what is the best practice to use in this case and where am I making a mistake?
Thank you very much!
Jack