matcornic / hugo-theme-learn

Porting Grav Learn theme to Hugo
https://learn.netlify.com/en/
MIT License
1.6k stars 1.28k forks source link

Removed condition of site being multilingual for the landingPageURL... #554

Open pragone opened 1 year ago

pragone commented 1 year ago

Removed condition of site being multilingual for the landingPageURL to be honoured

This theme ignores the landingPageURL for the link on the Home Page if the site is not multilingual. Currently in menu.html, it checks for the site to be multilingual at the same time that it checks for a landingPageURL to be set. In my case (and the reason why I'm contributing this PR) I have a single-language site that is not hosted on "/", so I'd like to have a Home button that takes me to the actual home page of the generated site.

Thanks for all the great work in this theme. Hope this is a small improvement that can be added soon.