Hugo-coder: Deploy to Netlify doesn't show theme

Created on 27 Aug 2020  路  3Comments  路  Source: luizdepra/hugo-coder

When I deploy to Netlify, the page loads but the theme does not show properly.

Everything looks fine when I deploy locally with hugo serve

Any thoughts on what may be causing this? I set the base_url up properly.

Screen Shot 2020-08-27 at 10 36 05 AM

Most helpful comment

Inspecting your website I saw that both CSS and JS content are suffering a redirect and so being blocked by CORS rules.

Screenshot from 2020-08-27 13-52-55

You have configured your base_url as https://www.maximilianrohde.com. I think It should work fine if you remove the subdomain www, so changing base_url to https://maximilianrohde.com.

All 3 comments

here is the website if that is helpful
https://maximilianrohde.com

and the GitHub page with the source is here
https://github.com/maxdrohde/website

Inspecting your website I saw that both CSS and JS content are suffering a redirect and so being blocked by CORS rules.

Screenshot from 2020-08-27 13-52-55

You have configured your base_url as https://www.maximilianrohde.com. I think It should work fine if you remove the subdomain www, so changing base_url to https://maximilianrohde.com.

That fixed it, thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

clement-pannetier picture clement-pannetier  路  3Comments

Mike-E-angelo picture Mike-E-angelo  路  3Comments

paride picture paride  路  6Comments

luizdepra picture luizdepra  路  6Comments

jtr109 picture jtr109  路  5Comments