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

Bootstrap tutorial: blog.html.twig missing/not recognized

Started by Muut Archive 11 years ago · 5 replies · 478 views
11 years ago

Following along the tutorial on setting up bootstrap I have this error on calling my site: " RuntimeException (400) The template file for this page: "blog.html.twig" is not provided by the theme: "Bootstrap"

But - I do have blog.html.twig in my theme templates, like so:
------```
bootstrap.php bootstrap.yaml css fonts images js templates

./css:
bootstrap.css bootstrap.min.css bootstrap-theme.css.map
bootstrap.css.map bootstrap-theme.css bootstrap-theme.min.css

./fonts:
glyphicons-halflings-regular.eot glyphicons-halflings-regular.woff
glyphicons-halflings-regular.svg glyphicons-halflings-regular.woff2
glyphicons-halflings-regular.ttf

./images:

./js:
bootstrap.js bootstrap.min.js npm.js

./templates:
blog.html.twig default.html.twig images partials

./templates/images:

./templates/partials:
base.html.twig blog_item.html.twig header.html.twig
------------```

I have initially installed the blog skeleton and that works fine. Just to make sure I copied the blog.html.twig from antimatter and checked that it has the same permissions. What am I missing? Thanks for any pointers.

11 years ago

Could be something that blog.html.twig is trying to include (another template) is missing?

11 years ago

Hmm, it works now, so no worries, but I feel a bit confused ... in antimatter theme blog.html.twig references partials/pagination.html.twig, but that template does not exist. Yet antimatter blog displays just fine ...?

11 years ago

That pagination.htm.twig is provided by the pagination plugin. Basically any plugin can add to the template locations. it's done in such a way that plugins register their locations earlier than the theme, so the theme can override a plugin layout if you wish to.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1338 9 years ago
Archive · by Muut Archive, 9 years ago
2 927 9 years ago
Archive · by Muut Archive, 9 years ago
2 4056 9 years ago
Archive · by Muut Archive, 9 years ago
1 2941 9 years ago
Archive · by Muut Archive, 9 years ago
3 1112 9 years ago