With reference to my earlier post (Site page not populating and icon not showing) I still have the issue of icons in menus showing on localhost but not on production server. I see the icons on the server so it should be ok, but still they do not show in Hugo. Also I can see that not all SCSS is behaving the same (pls see image) there is a wider area for our header text on the production server.
I run it with the version (76.4) that the theme maker seems to prefer and following compile code hugo_extended_0.76.4_macOS-64bit/hugo --gc --minify --buildDrafts=false --baseURL="https://valo-liitto.fi/"
It is my understanding that by doing this I get the right result?
Yes, by setting the baseURL flag on the command line you are overriding the site configuration file. You can do it either way, regardless of what the theme maker “seems to prefer.” So this is not relevant to your problem.
When I use the browser’s dev tools to view your site:
You might check your permissions on the server. The apache user (on Ubuntu that’s www-data) needs to be able to traverse to the directory and read the file.
Thanks for you kind efforts. I am dumbfounded by this. I have tried to chown the directories to www-data, no help, I’ve also checked the icons that show as 404, and when I do an ls on them, they are there and they are readable, eg.
ls -la www/icons/mail.svg
-rw-r--r-- 1 saku saku 2076 Jan 2 17:50 www/icons/mail.svg
Quite right, I do not want to go to Apache questions here, either. But just if someone were to read this later on, I want to make it clear cut that it is not a user or group permissions issue. If it were, the rest of the site wouldn’t load either, as the ownership is consistent over the whole site.
But given the above, it is a pickle why the problem is present.
Here is the weirdest thing. As it seemed that no images from under icons/ were loading, I mass replaced in public all instances of icon/ with an exact copy of said folder ikonit/ and now the site works.
Why this is so, I do not know. Thanks to @jmooring for your gracious use of your time to help me!