Page
Extra template suggestions: one for entity type and one for the content type.
<!-- THEME DEBUG -->
<!-- THEME HOOK: 'page' -->
<!-- FILE NAME SUGGESTIONS:
x page--node--article.html.twig
* page--node--37.html.twig
* page--node--%.html.twig
x page--node.html.twig
* page.html.twig
-->
In above example:
article
is the content type of the node entity typepage--node.html.twig
is already in place by Drupal, but doesn't always follow the correct BEM naming structure. For taxonomy-terms, Drupal will outputpage--taxonomy--term
instead ofpage--taxonomy-term
.
Specifications
Machine name
page
Built upon
Drupal Core
Building blocks
HTML