zeon-studio / hugoplate

Hugoplate is a free starter template built with Hugo and TailwindCSS that will save you hours of work.
https://zeon.studio/preview?project=hugoplate
MIT License
798 stars 218 forks source link

Navigation ignores external URLs. #136

Closed tuxpizza closed 3 months ago

tuxpizza commented 3 months ago

Seems like the navigation configuration under menus.en.toml do not allow anything except subdirectories. This is very un-ideal as it completely limits the use of the navigation bar.

It totally ignores any external links or URI fragments (which none seem to exist for the features sections on the main page anyways).

tfsomrat commented 3 months ago

Hey @tuxpizza, you need to use url instead of pageRef to use an external link in menu. for example

[[main]]
name = "Google"
url = "https://google.com"
weight = 2