Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

preload.twig

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.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Preload the non-bold & non-italic fonts for the headings and the body copy.
  5. *
  6. * Available variables:
  7. * - olivero_path: Returns the path to the Olivero theme.
  8. */
  9. #}
  10. <link rel="preload" href="{{ olivero_path }}/fonts/metropolis/Metropolis-Regular.woff2" as="font" type="font/woff2" crossorigin>
  11. <link rel="preload" href="{{ olivero_path }}/fonts/metropolis/Metropolis-SemiBold.woff2" as="font" type="font/woff2" crossorigin>
  12. <link rel="preload" href="{{ olivero_path }}/fonts/metropolis/Metropolis-Bold.woff2" as="font" type="font/woff2" crossorigin>
  13. <link rel="preload" href="{{ olivero_path }}/fonts/lora/lora-v14-latin-regular.woff2" as="font" type="font/woff2" crossorigin>
RSS feed
Powered by Drupal