Hugo can't find icon defined in config/_default/params.yaml

params.yaml:
logo: "images/upf/upf-icon.svg"

When running hugo server I get the following warning:
WARN Could not find icon ‘images/upf/upf-icon.svg’.

And my upf-icon.svg file is located at static/images/upf/upf-icon.svg

(Note: I’m running Hugo v0.123.4)

That warning is generated by a template, created by you or a theme/module author. It is not a core warning.

You are more likely to receive a prompt and accurate response if you post a link to the public repository for your project.

See Requesting Help.

Let us see your code

Include a link to the source code repository of your project, because we really need the context of seeing your templates and partials to be able to help you. It is trivial to do a quick git clone on your repo, then run hugo server in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.

If you can’t share your repository for whatever reason, consider creating a dummy repo that you can share, which reproduces the problem you’re experiencing.

Or reach out to the theme author for assistance.

It was a symlink error. I forgot that I had added a symlink from assets/images to static/images, which did not transfer over to the other machine by git.

Thanks for your help

I’m glad you figured it out, but don’t use symlinks… use mounts instead:
https://gohugo.io/getting-started/directory-structure/#union-file-system

If you think you need a symbolic link in your project directory, use Hugo’s union file system instead.

Oh, I had no idea that existed. Worked perfectly thanks!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.