-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add GTM tracking code to start of <head> - reorganize <head> partials to give more flexibility for placing fragments - link to stylesheet directly below <title> in <head>
- Loading branch information
1 parent
34640de
commit 6514e2a
Showing
9 changed files
with
23 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<meta charset="utf-8"> | ||
{{#if (eq env.FORCE_HTTPS 'true')}} | ||
<script>(function(l,p){if(l.protocol!==p)l.protocol=p})(location,'https:')</script> | ||
{{/if}} | ||
{{#if site.keys.googleAnalytics}} | ||
<script>(function(w,d,s,l,i){(w[l]=w[l]||[]).push({'gtm.start':+new Date(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],g=d.createElement(s);g.async=true;g.src='https://www.googletagmanager.com/gtm.js?id='+i;f.parentNode.insertBefore(g,f)})(window,document,'script','dataLayer','{{site.keys.googleAnalytics}}')</script> | ||
{{/if}} | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<link rel="stylesheet" href="{{uiRootPath}}/css/site.css"> | ||
{{> head-meta}} | ||
{{> head-scripts}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
{{#if page.component}} | ||
{{#if page.description}} | ||
<meta name="description" content="{{page.description}}"> | ||
{{/if}} | ||
{{#if page.keywords}} | ||
<meta name="keywords" content="{{page.keywords}}"> | ||
{{/if}} | ||
<link rel="schema.dcterms" href="https://purl.org/dc/terms/"> | ||
<meta name="dcterms.subject" content="{{page.component.name}}"> | ||
<meta name="dcterms.identifier" content="{{page.version}}"> | ||
{{/if}} | ||
{{#if (or antoraVersion site.antoraVersion)}} | ||
<meta name="generator" content="Antora {{or antoraVersion site.antoraVersion}}"> | ||
{{/if}} | ||
<link rel="stylesheet" href="{{uiRootPath}}/css/site.css"> | ||
<link rel="icon" href="{{uiRootPath}}/img/favicon.ico" type="image/x-icon"> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +0,0 @@ | ||
{{#if site.keys.googleAnalytics}} | ||
{{#with site.keys.googleAnalytics}} | ||
<script async src="https://www.googletagmanager.com/gtag/js?id={{this}}"></script> | ||
<script>dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments)};gtag('js',new Date());gtag('config','{{this}}')</script> | ||
{{/with}} | ||
{{/if}} | ||
This file was deleted.
Oops, something went wrong.