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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Server error 400 - Template after installation

first-time

Started by Bruce 8 years ago · 2 replies · 835 views
8 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.

8 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

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 57 15 hours ago
Support · by Anna, 3 days ago
2 65 18 hours ago
Support · by Justin Young, 18 hours ago
1 33 18 hours ago
Support · by Duc , 1 week ago
2 68 5 days ago
Support · by Colin Hume, 1 week ago
2 60 6 days ago