html.html.twig 1.65 KB
Newer Older
1
2
3
4
5
6
{#
/**
 * @file
 * Default theme implementation for the basic structure of a single Drupal page.
 *
 * Variables:
7
8
9
 * - logged_in: A flag indicating if user is logged in.
 * - root_path: The root path of the current page (e.g., node, admin, user).
 * - node_type: The content type for the current node, if the page is a node.
10
11
12
 * - css: A list of CSS files for the current page.
 * - head: Markup for the HEAD element (including meta tags, keyword tags, and
 *   so on).
13
14
15
 * - head_title: A modified version of the page title, for use in the TITLE tag.
 * - head_title_array: List of text elements that make up the head_title
 *   variable. May contain or more of the following:
16
17
18
19
20
21
22
23
24
25
 *   - title: The title of the page.
 *   - name: The name of the site.
 *   - slogan: The slogan of the site.
 * - page_top: Initial rendered markup. This should be printed before 'page'.
 * - page: The rendered page markup.
 * - page_bottom: Closing rendered markup. This variable should be printed after
 *   'page'.
 * - styles: Style tags necessary to import all necessary CSS files in the head.
 * - scripts: Script tags necessary to load the JavaScript files and settings
 *   in the head.
26
 * - db_offline: A flag indicating if the database is offline.
27
28
29
30
31
32
33
34
35
 *
 * @see template_preprocess_html()
 *
 * @ingroup themeable
 */
#}
<!DOCTYPE html>
<html{{ html_attributes }}>
  <head>
36
    {{ head }}
37
    <title>{{ head_title }}</title>
38
39
    {{ styles }}
    {{ scripts }}
40
  </head>
41
42
  <body{{ attributes }}>
    <a href="#main-content" class="visually-hidden focusable">
43
44
      {{ 'Skip to main content'|t }}
    </a>
45
    {{ page_top }}
46
    {{ page }}
47
    {{ page_bottom }}
48
    {{ scripts_bottom }}
49
50
  </body>
</html>