31 lines
1.6 KiB
HTML
31 lines
1.6 KiB
HTML
<meta charset="UTF-8">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
{{- if (or (in .Page.RelPermalink "404") (or .Site.Params.noIndex .Params.noIndex)) -}}
|
|
<meta name="robots" content="{{ .Site.Params.denyRobots | default "noindex, nofollow, noarchive" }}">
|
|
{{- else -}}
|
|
<meta name="robots" content="{{ .Site.Params.allowRobots | default "index, follow" }}">
|
|
{{- end -}}
|
|
<link rel="author" href="{{"humans.txt" | relURL}}">
|
|
<link rel="apple-touch-icon" sizes="180x180" href="{{"apple-touch-icon.png" | relURL}}">
|
|
{{- if (fileExists "static/favicon.ico") -}}
|
|
<link rel="icon" href="{{"favicon.ico" | relURL}}" type="image/x-icon">
|
|
{{- end -}}
|
|
{{ $favicon := "images/favicon.svg" }}
|
|
{{- if (fileExists (printf "assets/%s" $favicon)) -}}
|
|
{{- with resources.Get $favicon | minify -}}
|
|
<link rel="icon" href="{{ .Permalink }}" type="image/svg+xml">
|
|
{{- end -}}
|
|
{{- else if (fileExists "static/favicon.svg") -}}
|
|
<link rel="icon" href="{{"favicon.svg" | relURL}}" type="image/svg+xml">
|
|
{{- end -}}
|
|
<link rel="icon" type="image/png" sizes="32x32" href="{{"favicon-32x32.png" | relURL}}">
|
|
<link rel="icon" type="image/png" sizes="16x16" href="{{"favicon-16x16.png" | relURL}}">
|
|
<link rel="manifest" href="{{"site.webmanifest" | relURL}}">
|
|
<meta name="msapplication-TileImage" content="{{"mstile-144x144.png" | relURL}}">
|
|
{{ with .Site.Params.themeColor -}}
|
|
<meta name="theme-color" content="{{.}}">
|
|
<meta name="msapplication-TileColor" content="{{.}}">
|
|
<link rel="mask-icon" href="{{"safari-pinned-tab.svg" | relURL}}" color="{{.}}">
|
|
{{- end -}} |