Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

Server error 400 - Template after installation

first-time

Started by Bruce 9 years ago · 2 replies · 965 views
9 years ago

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

TWIG
        {% 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.

9 years ago

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

9 years ago

Thank you, Paul. That helps.

Suggested topics

Topic Participants Replies Views Activity
Support · by Paul Hodges, 4 weeks ago
19 485 5 days ago
Support · by Lauw, 7 days ago
2 99 7 days ago
Support · by Anna, 3 weeks ago
4 426 1 week ago
Support · by gtx, 4 weeks ago
4 377 3 weeks ago
Support · by Anna, 1 month ago
9 484 3 weeks ago