101 lines
3.9 KiB
HTML
101 lines
3.9 KiB
HTML
|
<head>
|
||
|
{{ if .Site.Params.googleTagManager }}
|
||
|
<!-- Google Tag Manager -->
|
||
|
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||
|
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||
|
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||
|
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||
|
})(window,document,'script','dataLayer','{{ .Site.Params.googleTagManager }}');</script>
|
||
|
<!-- End Google Tag Manager -->
|
||
|
{{ end }}
|
||
|
|
||
|
{{ if .Site.GoogleAnalytics }}
|
||
|
{{ template "_internal/google_analytics_async.html" . }}
|
||
|
{{ end }}
|
||
|
|
||
|
<title>
|
||
|
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
|
||
|
{{ if .IsHome -}}
|
||
|
{{ .Site.Title }}
|
||
|
{{- else if .Params.heading -}}
|
||
|
{{ .Params.heading }}
|
||
|
{{- else -}}
|
||
|
{{ .Title }} | {{ .Site.Title }}
|
||
|
{{- end }}
|
||
|
</title>
|
||
|
|
||
|
<meta name="title" content="{{ if .IsHome }}{{ .Site.Title }}{{ else if .Params.heading }}{{ .Params.heading }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end}}">
|
||
|
|
||
|
<meta charset="utf-8">
|
||
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||
|
<meta name="HandheldFriendly" content="True">
|
||
|
<meta name="MobileOptimized" content="320">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<meta name="referrer" content="no-referrer-when-downgrade">
|
||
|
<base href="{{ .Site.BaseURL }}">
|
||
|
|
||
|
{{ if .Description }}
|
||
|
<meta name="description" content="{{ .Description }}">
|
||
|
{{ else if .Site.Params.description }}
|
||
|
<meta name="description" content="{{ .Site.Params.description }}">
|
||
|
{{ else if .Summary }}
|
||
|
<meta name="description" content="{{ .Summary }}">
|
||
|
{{ end }}
|
||
|
|
||
|
{{ if .Site.Params.author }}
|
||
|
<meta name="author" content="{{ .Site.Params.author }}">
|
||
|
{{ end }}
|
||
|
|
||
|
{{ if .Site.Params.twitter }}
|
||
|
<meta name="twitter:card" content="summary_large_image">
|
||
|
<meta name="twitter:site" content="@{{ .Site.Params.twitter }}">
|
||
|
<meta name="twitter:creator" content="@{{ .Site.Params.twitter }}">
|
||
|
{{ end }}
|
||
|
|
||
|
<meta property="og:title" content="{{ if .IsHome }}{{ .Site.Title }}{{ else if .Params.heading }}{{ .Params.heading }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}">
|
||
|
<meta property="og:type" content="website">
|
||
|
<meta property="og:url" content="{{ .Site.BaseURL }}">
|
||
|
|
||
|
{{ if .Site.Params.opengraphImage}}
|
||
|
<meta property="og:image" content="{{ .Site.BaseURL }}{{ .Site.Params.opengraphImage}}">
|
||
|
{{ end }}
|
||
|
|
||
|
{{ if .Description }}
|
||
|
<meta name="og:description" content="{{ .Description }}">
|
||
|
{{ else if .Site.Params.description }}
|
||
|
<meta property="og:description" content="{{ .Site.Params.description}}">
|
||
|
{{ else if .Summary }}
|
||
|
<meta name="og:description" content="{{ .Summary }}">
|
||
|
{{ end }}
|
||
|
|
||
|
{{ if .Site.Params.favicon }}
|
||
|
<link rel="icon" type="image/png" sizes="16x16" href="{{ .Site.Params.favicon }}">
|
||
|
<meta name="theme-color" content="#FFF">
|
||
|
{{ end }}
|
||
|
|
||
|
<link rel="canonical" href="{{ .Permalink }}">
|
||
|
|
||
|
{{ with .OutputFormats.Get "RSS" }}
|
||
|
<link href="{{ .Permalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}">
|
||
|
{{ end }}
|
||
|
|
||
|
<link rel="stylesheet" href="{{ (resources.Get "sass/main.scss" | resources.ToCSS (dict "targetPath" "style.css" "outputStyle" "compressed") | resources.Fingerprint).Permalink }}" type="text/css">
|
||
|
|
||
|
{{ if .Site.Params.customCSS }}
|
||
|
{{ partial "css.html" . }}
|
||
|
{{ end }}
|
||
|
|
||
|
{{ if .Site.Params.lazyLoading }}
|
||
|
<style>.lazyload{opacity:.0001;}.logo .lazyload{min-width:10em;}</style>
|
||
|
<script src="{{ (resources.Get "js/vendor/lazysizes.min.js").Permalink }}" async></script>
|
||
|
{{ end }}
|
||
|
|
||
|
{{ if .Site.Params.highlightJS }}
|
||
|
{{ if .Site.Params.highlightJSStyle }}
|
||
|
<link rel="stylesheet" href="{{ .Site.Params.highlightJSStyle }}">
|
||
|
{{ else }}
|
||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css">
|
||
|
{{ end }}
|
||
|
{{ end }}
|
||
|
</head>
|