first commit
This commit is contained in:
43
themes/coHub/layouts/partials/head.html
Normal file
43
themes/coHub/layouts/partials/head.html
Normal file
@@ -0,0 +1,43 @@
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>{{.Title}}</title>
|
||||
|
||||
{{ "<!--Meta For No Index-->" | safeHTML }}
|
||||
<meta name="robots" content="noindex, Nofollow, Noimageindex">
|
||||
|
||||
{{ "<!--mobile responsive meta-->" | safeHTML }}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1, maximum-scale=1"
|
||||
/>
|
||||
{{hugo.Generator}}
|
||||
{{ "<!-- Critical CSS -->" | safeHTML }}
|
||||
{{$style := resources.Get "scss/critical.scss" | resources.ToCSS | resources.Minify }}
|
||||
<link href="{{ $style.Permalink }}" rel="stylesheet" />
|
||||
|
||||
{{ with .Site.Params.theme_overrides }}
|
||||
{{ $theme_overrides := resources.Get . | minify | fingerprint "sha512" }}
|
||||
<link rel="stylesheet" href="{{ $theme_overrides.RelPermalink }}" integrity="{{ $theme_overrides.Data.Integrity }}">
|
||||
{{ end }}
|
||||
|
||||
{{"<!-- Favicon -->" | safeHTML}}
|
||||
<link rel="shortcut icon" href="{{"images/favicon.ico" | absURL}}" type="image/x-icon" />
|
||||
<link rel="icon" href="{{"images/favicon.png" | absURL}}" type="image/x-icon" />
|
||||
|
||||
{{ with .Site.Params.googleAnalytics }}
|
||||
{{ "<!-- Global Site Tag (gtag.js) - Google Analytics -->" | safeHTML }}
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ . }}"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', '{{ . }}');
|
||||
|
||||
</script>
|
||||
{{ end }}
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user