head.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <head>
  2. <meta charset="utf-8">
  3. <title>{{ .Title }}</title>
  4. {{ "<!-- mobile responsive meta -->" | safeHTML }}
  5. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  6. <meta name="description" content="{{ with .Params.Description }}{{ . }}{{ else }}{{ with site.Params.description }}{{ . }}{{ end }}{{ end }}">
  7. {{ with site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
  8. {{ hugo.Generator }}
  9. {{ "<!-- plugins -->" | safeHTML }}
  10. {{ range site.Params.plugins.css }}
  11. <link rel="stylesheet" href="{{ .link | absURL }}">
  12. {{ end }}
  13. {{ "<!-- Main Stylesheet -->" | safeHTML }}
  14. {{ $style := resources.Get "scss/style.scss" | toCSS | minify }}
  15. <link href="{{ $style.Permalink }}" rel="stylesheet" media="screen"/>
  16. {{ "<!--Favicon-->" | safeHTML }}
  17. <link rel="shortcut icon" href="{{ `images/favicon.png` | absURL }}" type="image/x-icon">
  18. <link rel="icon" href="{{ `images/favicon.png` | absURL }}" type="image/x-icon">
  19. {{ with .Params.Image }}
  20. <meta property="og:image" content="{{ . | absURL }}" />
  21. {{ end }}
  22. {{ template "_internal/opengraph.html" . }}
  23. <!-- {{ template "_internal/google_analytics.html" . }}
  24. {{ template "_internal/google_analytics_async.html" . }} -->
  25. <!-- Global site tag (gtag.js) - Google Analytics -->
  26. <script async src="https://www.googletagmanager.com/gtag/js?id=G-M2LLC6QDMZ"></script>
  27. <script>
  28. window.dataLayer = window.dataLayer || [];
  29. function gtag(){dataLayer.push(arguments);}
  30. gtag('js', new Date());
  31. gtag('config', 'G-M2LLC6QDMZ');
  32. </script>
  33. </head>