Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hugo URLs with protocol (http) not supported

Tags:

hugo

docsy

I am using hugo (https://gohugo.io/) and trying to make an external link in the menu (docsy theme).

I changed the _index.md to:

---
title: "Documentation"
linkTitle: "Documentation"
url: "https://www.myurl.com"
weight: 20
menu:
  main:
    weight: 20
---

However hugo reports:

Rebuild failed: URLs with protocol (http*) not supported

Could anyone advise of how to create an external URL link directly on the menu?

Thanks, Gregor

like image 708
grexor Avatar asked Oct 15 '25 12:10

grexor


1 Answers

Keep in mind that "url" is a predefined front matter variable that is meant to be used for defining the full path to the content page from the site root. If you want to add an external link in your front matter, I'd recommend giving the variable a different name, e.g. "external_url".

like image 118
nciemniak Avatar answered Oct 18 '25 23:10

nciemniak



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!