summaryrefslogtreecommitdiff
path: root/layouts/_partials/head.html
blob: 0c5a796a84c193e8beb1ad81fde178a54cc0d2a6f87d1d017dbef978dc48a53c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<head>
  <meta charset="utf-8">
  <meta name="theme-color" content="#000">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  {{- if $.Site.Params.description }}
  <meta name="description" content="{{ $.Site.Params.description }}">
  {{- end -}}
  {{ if $.Site.Params.keywords }}
  <meta name="keywords" content="{{ $.Site.Params.keywords }}">
  {{- end -}}
  {{ range .Site.Params.custom_css | default (slice "static/css/style.css") }}
  {{- with resources.Get . }}
  <link rel="stylesheet" type="text/css" href="{{ (. | minify | fingerprint).RelPermalink }}">
  {{- else }}
  {{- errorf "stylesheet %q listed in params.custom_css was not found in the assets directory" . }}
  {{- end }}
  {{- end -}}
  {{ with .OutputFormats.Get "Atom" }}
  <link rel="alternate" type="application/atom+xml" href="{{ .RelPermalink }}" title="{{ $.Site.Title }}">
  {{- end -}}
  {{ if (not (fileExists "static/favicon.ico")) }}
  <link rel="icon" href="data:,">
  {{- end }}
  <title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} - {{ .Site.Title }}{{ end }}</title>
</head>