head.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <head>
  2. <meta charset="utf-8">
  3. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  4. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  5. {{ hugo.Generator }}
  6. <link rel="canonical" href="{{ .Permalink }}">
  7. {{ if .IsHome }}
  8. {{ with .Site.Params.homeMetaContent }}
  9. <meta name="description" content="{{ . | plainify }}">
  10. {{ end }}
  11. {{ end }}
  12. <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
  13. <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
  14. <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
  15. <link rel="manifest" href="/site.webmanifest">
  16. <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#000000">
  17. <meta name="msapplication-TileColor" content="#ffffff">
  18. <meta name="theme-color" content="#ffffff">
  19. <link rel="stylesheet" href="{{ "css/prism.css" | absURL }}" media="none" onload="this.media='all';">
  20. {{ $templateStyles := resources.Get "css/template-styles.css" }}
  21. {{ $styles := $templateStyles | resources.ExecuteAsTemplate "css/styles.css" . }}
  22. <link rel="stylesheet" type="text/css" href="{{ $styles.Permalink }}">
  23. {{ range .Site.Params.customCss -}}
  24. <link rel="stylesheet" href="{{ . | absURL }}">
  25. {{- end }}
  26. <style id="inverter" media="none">
  27. .intro-and-nav, .main-and-footer { filter: invert(100%) }
  28. * { background-color: inherit }
  29. img:not([src*=".svg"]), .colors, iframe, .demo-container { filter: invert(100%) }
  30. </style>
  31. {{ $title := print .Title " | " .Site.Title }}
  32. {{ if .IsHome }}
  33. {{ $title = .Site.Title }}
  34. {{ end }}
  35. <title>{{ $title }}</title>
  36. </head>