preload.twig

Same filename in other branches
  1. 10 core/themes/olivero/templates/includes/preload.twig
  2. 11.x core/themes/olivero/templates/includes/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>

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.