Site hosted on netlify won't load css opening css path gives 404

Site hosted on netlify won’t load css opening css path gives 404, I read every thread related to my issue but I can’t find what’s going wrong
github link https://github.com/Daveede/Cabitzadotcom

That is because your stylesheet is under /assets/ and yet you call it like so:
<link rel="stylesheet" type="text/css" href="{{.Site.BaseURL}}css/styles.css">

Resources are available through .Permalink and .RelPermalink.

The way you have constructed the above URL would make sense if the stylesheet resided under /static/ but everything under /assets/ is not accessible unless the above variables are used in the template.

1 Like