Component

Page

Some extra's for page components.

 

Extra template suggestions

Added 2 more specific 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 type 
  • page--node.html.twig is already in place by Drupal, but doesn't always follow the correct BEM naming structure. For taxonomy-terms, Drupal will output page--taxonomy--term instead of page--taxonomy-term.
page
Drupal Core
Responsive
Accessible
HTML
83 downloads
horizontal beam No open issue