hugo v0.98.0+extended linux/amd64 BuildDate=unknown
Where is this bug showing up?
In the browser: Hugo builds the site, but something doesn't look right.
Operating system
Fedora 37
Browser (if applicable)
Firefox 108.0.1
Current behavior
When changing the iconsDir site variable, the icon caret-icon.svg isn't loaded properly. The folder icons/ is hardcoded and therefore an 404 error is generated.
Expected behavior
The icon path is changed properly.
Steps to reproduce
Change the iconsDir variable in config/_default/params.toml
Run hugo
Open the website, the icon is not displayed
Relevant log output
No response
Related code
The error seems to be in file layouts/partials/nav.html, line 19:
I had a look at the nav.html file and added the missing directive for finding the iconsDir value (like in footer.html or favicon.html) - but unfortunately it is not working for me:
I confirm:
Hugo version
hugo v0.98.0+extended linux/amd64 BuildDate=unknown
Where is this bug showing up?
In the browser: Hugo builds the site, but something doesn't look right.
Operating system
Fedora 37
Browser (if applicable)
Firefox 108.0.1
Current behavior
When changing the
iconsDir
site variable, the iconcaret-icon.svg
isn't loaded properly. The foldericons/
is hardcoded and therefore an 404 error is generated.Expected behavior
The icon path is changed properly.
Steps to reproduce
iconsDir
variable inconfig/_default/params.toml
hugo
Relevant log output
No response
Related code
The error seems to be in file
layouts/partials/nav.html
, line 19:Preferred solution
I had a look at the
nav.html
file and added the missing directive for finding the iconsDir value (like infooter.html
orfavicon.html
) - but unfortunately it is not working for me:Line 1 and 20 has been changed.
I guess, I'm missing something here. I'm not an Hugo expert.
Other information
No response