cupper-hugo-theme/layouts/partials/head.html

41 lines
1.5 KiB
HTML
Raw Normal View History

2019-02-13 06:11:59 +01:00
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
2019-02-14 20:35:17 +01:00
{{ .Hugo.Generator }}
2019-02-13 06:11:59 +01:00
<link rel="canonical" href="{{ .Permalink }}">
2019-02-13 22:47:30 +01:00
{{ if .IsHome }}
{{ with .Site.Params.description }}
<meta name="description" content="{{ . | plainify }}">
{{ end }}
{{ end }}
2019-02-13 22:47:30 +01:00
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#000000">
2019-02-13 06:11:59 +01:00
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="theme-color" content="#ffffff">
2019-02-13 22:47:30 +01:00
2019-02-13 06:11:59 +01:00
<link rel="stylesheet" href="{{ "css/prism.css" | absURL }}" media="none" onload="this.media='all';">
2019-02-15 17:57:49 +01:00
{{ $templateStyles := resources.Get "css/template-styles.css" }}
{{ $styles := $templateStyles | resources.ExecuteAsTemplate "css/styles.css" . }}
<link rel="stylesheet" type="text/css" href="{{ $styles.Permalink }}">
2019-02-13 22:47:30 +01:00
2019-02-13 06:11:59 +01:00
<style id="inverter" media="none">
html { filter: invert(100%) }
* { background-color: inherit }
img:not([src*=".svg"]), .colors, iframe, .demo-container { filter: invert(100%) }
</style>
2019-02-13 22:47:30 +01:00
2019-02-13 06:11:59 +01:00
{{ $title := print .Title " | " .Site.Title }}
{{ if .IsHome }}
{{ $title = .Site.Title }}
{{ end }}
2019-02-14 20:35:17 +01:00
<title>{{ $title }}</title>
2019-02-13 06:11:59 +01:00
</head>