preload.twig in Drupal 10
Same filename and directory in other branches
Preload the non-bold & non-italic fonts for the headings and the body copy.
Available variables:
- olivero_path: Returns the path to the Olivero theme.
File
core/themes/olivero/templates/includes/preload.twigView source
- {#
- /**
- * @file
- * Preload the non-bold & non-italic fonts for the headings and the body copy.
- *
- * Available variables:
- * - olivero_path: Returns the path to the Olivero theme.
- */
- #}
-
- <link rel="preload" href="{{ olivero_path }}/fonts/metropolis/Metropolis-Regular.woff2" as="font" type="font/woff2" crossorigin>
- <link rel="preload" href="{{ olivero_path }}/fonts/metropolis/Metropolis-SemiBold.woff2" as="font" type="font/woff2" crossorigin>
- <link rel="preload" href="{{ olivero_path }}/fonts/metropolis/Metropolis-Bold.woff2" as="font" type="font/woff2" crossorigin>
- <link rel="preload" href="{{ olivero_path }}/fonts/lora/lora-v14-latin-regular.woff2" as="font" type="font/woff2" crossorigin>