|
| 1 | +<head> |
| 2 | + <!-- Google Tag Manager --> |
| 3 | + <script>(function (w, d, s, l, i) { |
| 4 | + w[l] = w[l] || []; w[l].push({ |
| 5 | + 'gtm.start': |
| 6 | + new Date().getTime(), event: 'gtm.js' |
| 7 | + }); var f = d.getElementsByTagName(s)[0], |
| 8 | + j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = |
| 9 | + 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); |
| 10 | + })(window, document, 'script', 'dataLayer', 'GTM-N88JZ7B');</script> |
| 11 | + <!-- End Google Tag Manager --> |
| 12 | + <meta charset="utf-8" /> |
| 13 | + <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| 14 | + {{- $title := ( .Title ) -}} |
| 15 | + {{- $siteTitle := ( .Site.Title ) -}} |
| 16 | + {{- if .IsHome -}} |
| 17 | + <title>{{ $siteTitle }} {{ if isset .Site.Params "subtitle" }}- {{ .Site.Params.Subtitle }}{{ end }} </title> |
| 18 | + {{- else -}} |
| 19 | + <title>{{ $title }} - {{ $siteTitle }}</title> |
| 20 | + {{- end -}} |
| 21 | + |
| 22 | + {{- if isset .Site.Params "favicon" -}} |
| 23 | + <link rel="icon" type="image/png" href={{ .Site.Params.favicon }} /> |
| 24 | + {{- end -}} |
| 25 | + |
| 26 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 27 | + {{ with .OutputFormats.Get "rss" -}} |
| 28 | + {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} |
| 29 | + {{ end -}} |
| 30 | + |
| 31 | + {{- template "_internal/opengraph.html" . -}} |
| 32 | + {{- template "_internal/twitter_cards.html" . -}} |
| 33 | + |
| 34 | + <link rel="stylesheet" type="text/css" media="screen" href="{{ .Site.BaseURL }}css/tailwind.css" /> |
| 35 | + |
| 36 | + {{ if and (isset .Site.Params "social") (isset .Site.Params "feathericonscdn") (eq .Site.Params.featherIconsCDN true) -}} |
| 37 | + <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> |
| 38 | + {{- else if (isset .Site.Params "social") -}} |
| 39 | + <script src="{{ .Site.BaseURL }}js/feather.min.js"></script> |
| 40 | + {{ end }} |
| 41 | + <script src="{{ .Site.BaseURL }}js/main.js"></script> |
| 42 | + {{- if isset .Site.Params "customjs" -}} |
| 43 | + {{- range .Site.Params.customJS }} |
| 44 | + <script src="{{ $.Site.BaseURL }}{{ . }}"></script> |
| 45 | + {{- end }} |
| 46 | + {{- end }} |
| 47 | +</head> |
0 commit comments