Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

head.html 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 .Description }}{{ . }}{{ else }}{{ with site.Params.description }}{{ . }}{{ end }}{{ end }}">
  7. {{ with site.Params.author }}
  8. <meta name="author" content="{{ . }}">{{ end }}
  9. {{ hugo.Generator }}
  10. {{ template "_internal/opengraph.html" . }}
  11. {{ template "_internal/twitter_cards.html" . }}
  12. {{ $url := .BaseURL }}
  13. <meta name="twitter:image" content="{{ with .Params.image }}{{$url}}{{ . }}{{ else }}{{$url}}{{ `images/Cover.jpg` | absURL }}{{end}}">
  14. <link rel="canonical" href="{{ .Permalink }}">
  15. {{ "<!-- plugins -->" | safeHTML }}
  16. {{ range site.Params.plugins.css }}
  17. <link rel="stylesheet" href="{{ .link | absURL }}">
  18. {{ end }}
  19. {{"<!-- Main Stylesheet -->"|safeHTML}}
  20. {{ $styles := resources.Get "css/style.css" | minify }}
  21. <link rel="stylesheet" href="{{ $styles.Permalink }}" media="screen">
  22. {{"<!-- Custom stylesheet - for your changes -->" |safeHTML}}
  23. {{ $custom := resources.Get "css/custom.css" | minify }}
  24. <link rel="stylesheet" href="{{ $custom.Permalink }}" media="screen">
  25. {{ "<!--Favicon-->" | safeHTML }}
  26. <link rel="shortcut icon" href="{{ `images/favicon.png` | absURL }}" type="image/x-icon">
  27. <link rel="icon" href="{{ `images/favicon.png` | absURL }}" type="image/x-icon">
  28. {{ with site.Params.google_analytics_id }}
  29. {{ "<!-- Global Site Tag (gtag.js) - Google Analytics -->" | safeHTML }}
  30. <script async src="https://www.googletagmanager.com/gtag/js?id={{ . }}"></script>
  31. <script>
  32. window.dataLayer = window.dataLayer || [];
  33. function gtag(){dataLayer.push(arguments);}
  34. gtag('js', new Date());
  35. gtag('config', '{{ . }}');
  36. </script>
  37. {{ end }}
  38. </head>