You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The template code to generate a list of tags with hrefs to each tag's definition fails when the baseURL contains a path component. That is, everything is fine if the baseURL is https://example.com/ but fails if the baseURL is https://example.com/site/. This appears to be caused by not using the "relLangURL" (or "relURL") function to form the href. In other parts of the theme, this function is used and results are correct.
The template code to generate a list of tags with
href
s to each tag's definition fails when the baseURL contains a path component. That is, everything is fine if the baseURL ishttps://example.com/
but fails if the baseURL ishttps://example.com/site/
. This appears to be caused by not using the "relLangURL" (or "relURL") function to form thehref
. In other parts of the theme, this function is used and results are correct.In code, the faulty line is:
A working version would be:
To Reproduce
Set up the example Noteworthy theme site and set the baseURL in
config.toml
to something with a path component. The bug appears when runninghugo server
and when publishing, for example, to GitHub Pages. The example is available at https://github.com/ranger6/noteworthy-example. The master branch contains a forked and unmodified submodule of the Noteworthy Theme: https://github.com/ranger6/hugo-theme-noteworthy. The GitHub Pages for the noteworthy-example demonstrates the bug: https://ranger6.github.io/noteworthy-example/To Fix
The above mentioned
single.html
file needs the appropriate changes applied.Pull request to follow.
The text was updated successfully, but these errors were encountered: