Skip to content

Commit

Permalink
Add GTM to preloads.
Browse files Browse the repository at this point in the history
  • Loading branch information
ecarlisle committed Mar 17, 2023
1 parent 05b8188 commit 393c478
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/layouts/base.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
<!DOCTYPE html>
<html lang="{{site.lang}}">
<head>
<!-- Preconnects -->
<link rel="preload" href="{{ site.hostname }}/fonts/exo2-semibold.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="{{ site.hostname }}/fonts/poppins-regular.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="{{ site.hostname }}/fonts/poppins-semibold.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="{{ site.hostname }}/fonts/robotomono-regular.woff2" as="font" type="font/woff2" crossorigin>
<link href="https://www.googletagmanager.com/gtm.js?id=GTM-5XHZVF" rel="preload" as="script">
<link rel="dns-prefetch" href="https://www.googletagmanager.com/" >

{%- if site.environment === 'production' -%}
<!-- Global site tag (gtag.js) - Google Analytics -->
<!-- Google Tag Manager -->
Expand All @@ -12,11 +20,6 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!-- Preconnects -->
<link rel="preload" href="{{ site.hostname }}/fonts/exo2-semibold.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="{{ site.hostname }}/fonts/poppins-regular.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="{{ site.hostname }}/fonts/poppins-semibold.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="{{ site.hostname }}/fonts/robotomono-regular.woff2" as="font" type="font/woff2" crossorigin>

<!-- Favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
Expand Down

0 comments on commit 393c478

Please sign in to comment.