Chris@0: {# Chris@0: /** Chris@0: * @file Chris@0: * Theme override for the basic structure of a single Drupal page. Chris@0: * Chris@0: * Variables: Chris@0: * - logged_in: A flag indicating if user is logged in. Chris@0: * - root_path: The root path of the current page (e.g., node, admin, user). Chris@0: * - node_type: The content type for the current node, if the page is a node. Chris@0: * - head_title: List of text elements that make up the head_title variable. Chris@0: * May contain one or more of the following: Chris@0: * - title: The title of the page. Chris@0: * - name: The name of the site. Chris@0: * - slogan: The slogan of the site. Chris@0: * - page_top: Initial rendered markup. This should be printed before 'page'. Chris@0: * - page: The rendered page markup. Chris@0: * - page_bottom: Closing rendered markup. This variable should be printed after Chris@0: * 'page'. Chris@0: * - db_offline: A flag indicating if the database is offline. Chris@0: * - placeholder_token: The token for generating head, css, js and js-bottom Chris@0: * placeholders. Chris@0: * Chris@0: * @see template_preprocess_html() Chris@0: */ Chris@0: #} Chris@0: {% Chris@0: set body_classes = [ Chris@0: logged_in ? 'user-logged-in', Chris@0: not root_path ? 'path-frontpage' : 'path-' ~ root_path|clean_class, Chris@0: node_type ? 'page-node-type-' ~ node_type|clean_class, Chris@0: db_offline ? 'db-offline', Chris@0: ] Chris@0: %} Chris@0: Chris@0: Chris@0: Chris@0: Chris@0: {{ head_title|safe_join(' | ') }} Chris@0: Chris@0: Chris@0: Chris@0: Chris@0: {# Chris@0: Keyboard navigation/accessibility link to main content section in Chris@0: page.html.twig. Chris@0: #} Chris@0: Chris@0: {{ page_top }} Chris@0: {{ page }} Chris@0: {{ page_bottom }} Chris@0: Chris@0: Chris@0: