How can I add relative URLs to the menu via pageRef? #765
-
The section on the start site (layout 'profile') has the anchor "#experience". But using this anchor as a parameter in pageRef does not work, the href is empty. How do I tell pageRef to link to this section (stored in |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Looking at the entry on pageRef in the Hugo Docs, it seems to be complicated, since I'm using |
Beta Was this translation helpful? Give feedback.
-
Sorry to spam this thread, but the problem can be solved using the parameter Thanks for listening :-) # This works now:
[[main]]
name = "Experience"
URL = "#experience"
weight = 10 |
Beta Was this translation helpful? Give feedback.
Sorry to spam this thread, but the problem can be solved using the parameter
URL
, and notpageRef
.Thanks for listening :-)