External Links in Nav Bar

I’m trying to figure out how to link to an external site as an item in my sites main menu bar. How would I go about doing that?

Site Info

Hugo Version 0.110.0
Theme Pico

Set the URL:

languages:
  en:
    menu:
      main:
      - identifier: "github"
        name: "GitHub"
        url: "https://github.com/foo"
        weight: 10

See Menus | Hugo

Still can’t figure it out.

Figureed it out, just had to set baseURL to “/”.

I tried to add a 2nd but it won’t appear in the menu at all.

Can you post your config?

Also, are you sure that the theme you’re using supports adding more menu items?

I don’t know, when I asked the dev how to (in a github issue) I was just directed to the Hugo docs but the dev seemed to by annoyed that I used a gh issues to ask for help as “thats not what they’re designed for”.

[[menu.main]]
identifier = "home" # identifier is use for translations
pre = "" # pre is inserted before the translation (icons, image, etc)
url = "/"
weight = 10

[[menu.main]]
identifier = "blog" # identifier is use for translations
pre = "" # pre is inserted before the translation (icons, image, etc)
url = "/blog/" 
weight = 20 

#[[menu.main]]
#identifier = "contact" # identifier is use for translations
#pre = "" # pre is inserted before the translation (icons, image, etc)
#url = "/#contact"
#weight = 30

[[menu.main]]
identifier = "cv" # identifier is use for translations
pre = "" # pre is inserted before the translation (icons, image, etc)
name = "CV"
url = "https://cv.samgreenwood.ca"
weight = 30

The CV link is the one I haven’t been able to get working. Before I moved my blog from WordPress to this site I was able to get a link modify the blog link to work direct to the WP site using the same format. Though I guess it’s possible that was just a fluke and worked because I just modified the existing blog link.

Your config looks correct. What happens if you delete the blog menu item? Does the CV item show then?

Can you link to your repo and the theme you’re using? The more info, the better.