SandpointsTheme/layouts/partials/head.html

49 lines
1.7 KiB
HTML

<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
{{ if .Description }}
<meta name="description" content="{{ .Description }}" />
{{ end }}
{{ if .Keywords }}
<meta name="keywords" content="{{ delimit .Keywords "," }}" />
{{ end }}
{{ if .Params.editors }}
{{ range .Params.editors }}
{{ $e := $.GetPage (printf "editor/%s" .) }}
<meta name="editor" content="{{ $e.Title }}" />
{{ end }}
{{ end }}
{{ if .Params.authors }}
{{ range .Params.authors }}
{{ $e := $.GetPage (printf "author/%s" .) }}
<meta name="author" content="{{ $e.Title }}" />
{{ end }}
{{ end }}
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}
{{ hugo.Generator }}
<link rel="apple-touch-icon" sizes="76x76" 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="#996561">
{{ if eq hugo.Environment "dev" }}
{{ $style := resources.Get "css/site.css" | resources.PostCSS (dict "config" "assets/css/postcss.config.js") | minify }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />
{{ $style := resources.Get "css/player.css" | resources.PostCSS (dict "config" "assets/css/postcss.config.js") | minify }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />
{{ else }}
<link rel="stylesheet" href="/css/site.min.css" />
<link rel="stylesheet" href="/css/player.min.css" />
{{ end }}