-
-
Notifications
You must be signed in to change notification settings - Fork 402
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
Specifically, if the headline is a link, it breaks the generation of the link anchor and right side navigation.
Here is a page that reproduces it, just place it in /content/test.md so that Hugo doesn't complain about the first link:
---
date: 2022-02-11
title: Test
---
## [Test Page]({{< ref "/test" >}})
Headlines that link to another page on the blog have a messed up anchor with a "HAHA HUGO SHORTCODE" thing in them. The navigation on the right doesn't work for these.
## [Github](https://github.com/)
Links to other websites do generate an anchor, but also append the url to these anchors (might be intentional?). However the navigation on the right doesn't work, and instead links directly to the other website.
### [Smaller Github](https://github.com/)
From what I can tell, it's just the anchor name is being generated with the link included. The "HAHA HUGO SHORTCODE" turns into the appropriate link once you try typing it out in the content. Might be why the right navigation lists out URLs as their links, and then the inter blog one shows the shortcode. I assume we don't want this?
#### [Smallest Github](https://github.com/)
Or if we do want it, the navigation links on the right need to link to these anchors, not be broken or navigate to the URLs themselves.
Theme version
v2.0.4
Hugo version
v0.92.1
What browsers are you seeing the problem on?
Firefox
Relevant Hugo log output
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working