HUGO

Problem with theme Somrat,

HI everyone,
I cannot manage to get the theme somrat to work like the example here : https://somrat.netlify.app/

Indeed, when I download the source code from the git repo here :

there a re two problems :

  1. the portfolio is not working properly, I cannot seem to click only one category
  2. the underlying menu doesn’t seem to follow exactly the good section,

it looks to me that the source code is not the same, does anyone see what is the problem ?

thanks a lot,

Julien

Use a modern webbrowser and look at what the browser console tells you. For instance in Google Chrome you right click the website, then click “Inspect” and the developer console opens. It has a point “Console” (either already loaded or in a tab navigation). Reload the page and read what errors it shows to you. Most probably your site can’t load required Javascript files.

Thanks very much !!! Indeed, I did what you advised, and yes there is an error message :

La ressource à l’adresse « http://localhost:1313/plugins/fontawesome/font-awesome.min.css » a été bloquée en raison d’un type MIME (« text/plain ») incorrect (X-Content-Type-Options: nosniff).

which translates more or less like
The ressource at the adress « http://localhost:1313/plugins/fontawesome/font-awesome.min.css » was blocked because a type MIME (« text/plain ») which was incorrect (X-Content-Type-Options: nosniff).

but what does that really mean ? and mostimportantly, is there a way to solve this problem ?

thanks a lot!

Julien

This means, that by setting a Content Security Policy of “X-Content-Type-Options: nosniff” you disallow the browser to find out, what the css files content type is. It must assume that it’s a plain text file and that is wrong, because the right content type for stylesheets is text/stylesheet. I would remove the nosniff option in your CSP.