Hi folks! Help please I can not undestand why my hugo site doesn’t work in normal hosting. Actually works but there is stylesheet are not connected. I just frustrated. In my localhost everything ok. And I newbie in command line
It does work in hosting well. Share your project source (what you shared are the “output” folders which is not what is needed). Off the cuff, check that baseurl is set correctly in your config, and that the path for your css is correct.
If your baseurl is http://mysite.com, and your web server has a folder “mysite_public” that maps to that, you upload the content of the public folder that comes from the hugo command, into “mysite_public”, not the folder itself.
If on the other hand you want baseurl as http://mysite.com/somefolder, then you upload the content of your public folder to mysite_public/somefolder.
You’ve got baseURL = "https://cosmos-factory.ru" in your config, but your site is httP://.
Your css is being referenced at <link rel="stylesheet" href="https://cosmos-factory.ru/styles/main.css" type="text/css"> but, I don’t see any styles folder in your project’s static, although that could be from a theme…
You can put things into static yes. It’s for any static files. The static/ is loaded at the root of your site. When I tried accessing https://cosmos-factory.ru/styles/main.css, I got a 404. You should not add anything to public after hugo builds it, but rather just let hugo build / control everything.