From 87208a082b419f3bd4d212976e26dc267fcc05c3 Mon Sep 17 00:00:00 2001 From: Liam Morland <lkmorlan@uwaterloo.ca> Date: Tue, 1 Mar 2022 10:51:10 -0500 Subject: [PATCH] ISTWCMS-4708: Make 'head-placeholder' element first in 'head' element This is required to put the meta-charset element first as required by validation. Fixes problem introduced in f780866. --- templates/page/html.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/page/html.html.twig b/templates/page/html.html.twig index 9b31116d..52f25164 100644 --- a/templates/page/html.html.twig +++ b/templates/page/html.html.twig @@ -30,6 +30,7 @@ <!DOCTYPE html> <html{{ html_attributes }} class="no-js"> <head> + <head-placeholder token="{{ placeholder_token|raw }}"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> <link rel="preload" as="style" href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700&family=Barlow:wght@400;500;700&display=swap" /> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700&family=Barlow:wght@400;500;700&display=swap" media="print" onload="this.media='all'" /> @@ -45,7 +46,6 @@ })(window,document,'script','dataLayer','GTM-M9XLVF');</script> <!-- End Google Tag Manager --> {% endif %} - <head-placeholder token="{{ placeholder_token|raw }}"> <title>{{ head_title|safe_join(' | ') }}</title> <css-placeholder token="{{ placeholder_token|raw }}"> <js-placeholder token="{{ placeholder_token|raw }}"> -- GitLab