<p>I'm quite sure the problem is my paths to <code>.css</code> files in the <code>_layout.html</code> file but just can't get my head around it.</p>

<p>I've got this in my <code>_layout.html</code>. It works for home page and news page.</p>

<pre><code>{% includeCssFile "css/material.css" %}
{% includeCssFile "css/main.css" %}
</code></pre>

<p>But then I get the unstyled page when viewing a specific news entry. <code>_entry.html</code> is not extending <code>_layout.html</code>  </p>

<p>My CSS files are on the same level as my templates. What should these paths be?</p>

<templating><extends>
Why is news/_entry not extending _layout?
# Why is news/_entry not extending _layout?

(Asked by: username_0 on 2016-05-30)

I'm quite sure the problem is my paths to .css files in the _layout.html file but just can't get my head around it.
I've got this in my _layout.html. It works for home page and news page.
{% includeCssFile "css/material.css" %}
{% includeCssFile "css/main.css" %}

But then I get the unstyled page when viewing a specific news entry. _entry.html is not extending _layout.html 
My CSS files are on the same level as my templates. What should these paths be?

**Tags:** templating, extends

---

## 0 answers

