Hello! I’m super new at Hugo, I’m reading the full documentation and I’m trying to get better in time.
Sometimes on the website I’m building, the entire page appears unformatted like the css isn’t loading. I’m using latest Hugo version with the Notepadium theme.
So when I load a page, for instance this one, it all renders beautifully. But if I go into the top right nav menu, and click on “eventi” again (it points to the same exact address), the page is rendered like in the screenshot.
Hey @Jura, first of all thanks for testing this out and for the video. I’m happy that this works for you, It might be a browser issue though, because the following happens for safari iOS and safari Mac:
In the video, the page where the CSS isn’t loaded is not loaded over https (i.e. safari says ‘this page is not secure’).
Something is wrong with the link, such that it points to http rather than https or you need to fix the redirection on your site so all requests are served over https.
It’s super odd and confusing. After delving into access logs I’m now convinced I broke something about TLS with the htaccess file that should not have been affected at all that way.
Just to be complete, I did create the following .htaccess
RewriteEngine off
RewriteEngine on
it started the problem, but the problem persisted even after I deleted this file.
I don’t know how to do the second one, but about the integrity tag, I tried removing it and it works fine now. So it’s very likely that was the problem.
What could make Safari fail the integrity check? Also, is there a command or a parameter passed to Hugo to make it skip the integrity tags during build?
Normally no, but your theme can look up a variable that’s defined in different configuration files. (You might use one configuration file for local builds, and one for the deploy.)
I think what you suggest is slightly too advanced for me, but the problem has solved itself from me deleting my user and recreating it on my web host. I regret having to apply such a brute solution but you know, I’m not a professional myself so I have to use the tools I have