Server error 400 - Template after installation

Installed Grav with the Striped theme. AOK. Added the Admin plugin and another theme (Flaten), and returned a “400 - Template” error. “partials/blog/.item.html.twig” is not defined in “blog.html.twig” at line 63.

Line 63

        {% for child in collection %}
         {% include 'partials/blog/' ~ page.header.type ~ '.item.html.twig' with {'page':child, 'truncate':true, 'items':items} %}
        {% endfor %}

I’m lost. I know it has something to do with the Flaten theme, because when I change back to Striped it’s OK again. I just need a pointer in the right direction.

Hi,

This theme will look for a value in the page called “type”.
You will therefore have to edit the page that use the “blog” template, edit it in expert mode and add in the frontmatter:
type: blog or type: portfolio

This theme might not be the easiest to use if you are new to grav, as it does not provide blueprints, and you will therefore have to add value through the expert mode.

Good luck

Thank you, Paul. That helps.