So I am making a new craft cms website, I have my page entries linked to the template pages/_entry.html, which works fine. I then made another type of pages called news, linked to the template news/entry.html. Both of them have {% extends "_layout" %}
to get a common layout and the css styling. when I click preview, the page entries work (including css) but the CSS of news entry doesn't show up, it simply goes to the default styling (which is no styling).
I tried making both the news and page entries have their templates linked to pages/_entry.html, and once again, only the page entries show up with proper css styling but not the news entry. I tried this with a product in craft commerce as well, and the same happened where no styling would be present.
I even tried switching both news and page entries to news/entry.html but with no luck, I get the same result.
Is this a bug with craft cms or am I doing something horribly wrong?
both pages/_entry.html and news/_entry.html only have {% extends "_layout" %}
for now to troubleshoot this process. In my _layout.html I have {%includeCssFile "css/main.css"%}
to link to my css file.