Hey everyone. I have an issue with the following code. The code below outputs links for a menu. However, the URLs work perfectly when doing hugo serve. Though, when I hugo -b [some string], just these links have extra directories attached to the URL string.
Here’s the code:
</li>
{{ $currentPage := . }}
{{ range .Site.Menus.topic }}
<li class="nav-item reg">
<a class="nav-link" href="{{ .URL | relURL }}">{{ .Name }}</a>
</li>
{{ end }}
The link URL outputs like this /some _folder/some_folder/folder/index.html
Where it says some_folder twice, that shouldn’t be there. I have relativeURLs set to true in the config file and also have a baseURL set. When I do hugo -b I also set the baseURL from that.
Any thoughts on how to fix this? I’ve tested using the build in /public and also pushing those static files to GitHub pages, and still get this issue.