summaryrefslogtreecommitdiff
path: root/layouts/partials/head.html
blob: 8250e19367722baa19642ddf4cfecd31c327f8868ee32d40911afb29cd0537e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<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 -}}
  {{ if .Site.Params.custom_css -}}
  {{ range .Site.Params.custom_css }}
  <link rel="stylesheet" type="text/css" href="{{ relURL . }}">
  {{- end -}}
  {{ else }}
  <link rel="stylesheet" type="text/css" href="{{ (resources.Get "static/css/style.css").RelPermalink }}">
  {{- end -}}
  {{ if (not (fileExists "static/favicon.ico")) }}
  <link rel="icon" href="data:,">
  {{- end }}
  <title>{{ .Title }}</title>
</head>