{"action":"created","issue":{"url":"https://api.github.com/repos/spf13/hugo/issues/1774","labels_url":"https://api.github.com/repos/spf13/hugo/issues/1774/labels{/name}","comments_url":"https://api.github.com/repos/spf13/hugo/issues/1774/comments","events_url":"https://api.github.com/repos/spf13/hugo/issues/1774/events","html_url":"https://github.com/spf13/hugo/issues/1774","id":126368044,"number":1774,"title":"Links to external sites as menu entries","user":{"login":"carfesh","id":16491101,"avatar_url":"https://avatars.githubusercontent.com/u/16491101?v=3","gravatar_id":"","url":"https://api.github.com/users/carfesh","html_url":"https://github.com/carfesh","followers_url":"https://api.github.com/users/carfesh/followers","following_url":"https://api.github.com/users/carfesh/following{/other_user}","gists_url":"https://api.github.com/users/carfesh/gists{/gist_id}","starred_url":"https://api.github.com/users/carfesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carfesh/subscriptions","organizations_url":"https://api.github.com/users/carfesh/orgs","repos_url":"https://api.github.com/users/carfesh/repos","events_url":"https://api.github.com/users/carfesh/events{/privacy}","received_events_url":"https://api.github.com/users/carfesh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spf13/hugo/labels/kind/bug","name":"kind/bug","color":"D49392"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-01-13T08:32:00Z","updated_at":"2016-01-14T17:10:46Z","closed_at":null,"body":"Hi,\r\n\r\nI was wondering if there is an intuitive way to add external links to [our project's hugo site] (http://petschau.github.io/WinFellow). It shows a menu in the header, and I can extend the menu by adding an entry to the config.toml of our site, like in this example (as described in https://gohugo.io/extras/menus/):\r\n\r\n[[menu.main]]\r\nname = \"GitHub\"\r\nweight = 0\r\nidentifier = \"GitHub\"\r\nurl = \"http://github.com/petschau/WinFellow\"\r\n\r\nWhat happens is that the URL is added to the menu just fine, but it has a \"index.html\" attached to it, which breaks it. The documentation says that the URL must be relative to the context root (so I suppose this is intended for links pointing to the hugo site only).\r\n\r\nIs there any other way to define this so that an external URL can be followed, without having to edit the header template file?"},"comment":{"url":"https://api.github.com/repos/spf13/hugo/issues/comments/171707887","html_url":"https://github.com/spf13/hugo/issues/1774#issuecomment-171707887","issue_url":"https://api.github.com/repos/spf13/hugo/issues/1774","id":171707887,"user":{"login":"carfesh","id":16491101,"avatar_url":"https://avatars.githubusercontent.com/u/16491101?v=3","gravatar_id":"","url":"https://api.github.com/users/carfesh","html_url":"https://github.com/carfesh","followers_url":"https://api.github.com/users/carfesh/followers","following_url":"https://api.github.com/users/carfesh/following{/other_user}","gists_url":"https://api.github.com/users/carfesh/gists{/gist_id}","starred_url":"https://api.github.com/users/carfesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carfesh/subscriptions","organizations_url":"https://api.github.com/users/carfesh/orgs","repos_url":"https://api.github.com/users/carfesh/repos","events_url":"https://api.github.com/users/carfesh/events{/privacy}","received_events_url":"https://api.github.com/users/carfesh/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T17:10:46Z","updated_at":"2016-01-14T17:10:46Z","body":"Yes, I just used our existing project repository and put both the config into it (branch hugo), as well as the output files to the usual gh-pages branch. I think that's most convenient to have it available for the other team members. The page is not updated frequently, so switching the branch to perform an update is not a huge deal. I may still look into automating that process though."}}