-
Hi When I run
And when I run In my baseURL = 'https://vinser.github.io/' and links are as above mentioned in errors [links]
burnfix_docs = "https://vinser.github.io/burnfix"
flibgolite_docs = "https://vinser.github.io/flibgolite"
pixyne_docs = "https://vinser.github.io/pixyne" If I change link ref from It seems that hugo when doing product build consider such links are on the same host or so and is trying to find local ref? Please does anybody knows a workaround of such a case |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 9 replies
-
Can you share a bit more context and/or explain the steps how to reproduce this? Is this an error with a shortcode (e.g. link, navbar)? |
Beta Was this translation helpful? Give feedback.
-
The code is here https://github.com/vinser/hugo-hinode. It has home and 3 app pages - just light enough to test the case
|
Beta Was this translation helpful? Give feedback.
-
That's how it looks:
|
Beta Was this translation helpful? Give feedback.
-
Pure Markdown link
instead of
does not cause this error |
Beta Was this translation helpful? Give feedback.
-
Based on the above, I can assume that if Hinode link contains external ref/url that extends the baseURL, then Hinode assigns it the attribute of an internal/local link and, when building, hugo cannot find it. Should I open the issue? |
Beta Was this translation helpful? Give feedback.
-
I'll look into it! As a first observation, I'd recommend to use relative links instead of absolute links. For example:
|
Beta Was this translation helpful? Give feedback.
-
I'll do my best |
Beta Was this translation helpful? Give feedback.
Ah ok, got it! I thought you were referencing a local page generated by Hugo. The solution I can think of is to add a new argument
external=true
to the link shortcode. When set, Hinode would treat the link as an external link and will not try to load the Hugo page.