Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Server error 400 - Template after installation

first-time

Started by Bruce 9 years ago · 2 replies · 1012 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 complanar, 6 days ago
6 140 17 hours ago
Support · by Rick Beebe, 6 days ago
2 100 2 days ago
Support · by blu3prince, 3 days ago
0 52 3 days ago
Support · by alex, 4 days ago
2 92 3 days ago
Support · by Marcel, 2 weeks ago
1 143 4 days ago