29 lines
1.5 KiB
HTML
29 lines
1.5 KiB
HTML
<head>
|
|
<meta charset="utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
{{ if .IsPage }} <meta name="description" content="{{ .Summary }}"> {{ end }}
|
|
|
|
<title>
|
|
{{ if not .IsHome }}
|
|
{{ .Title }}
|
|
{{ else }}
|
|
{{ $.Site.Title }}
|
|
{{ end }}
|
|
</title>
|
|
|
|
<link rel="shortcut icon" type="image/x-icon" href="{{ $.Site.Params.favicon | relURL }}" />
|
|
{{ $options := (dict "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction)) }}
|
|
{{ $sass := resources.Get "css/main.scss" }}
|
|
{{ $style := $sass | css.Sass $options | resources.Fingerprint "sha512" }}
|
|
<link rel="stylesheet" href="{{ $style.Permalink | relURL }}" integrity="{{ $style.Data.Integrity }}" />
|
|
{{ if .Params.mathjax }} {{ partial "mathjax.html" . }} {{ end }}
|
|
|
|
<!-- Custom icons -->
|
|
<link rel="icon" type="image/png" href="{{ site.Params.assets.favicon96 | default "favicon-96x96.png" | absURL }}" sizes="96x96" />
|
|
<link rel="icon" type="image/svg+xml" href="{{ site.Params.assets.faviconsvg | default "favicon.svg" | absURL }}" />
|
|
<link rel="shortcut icon" href="{{ site.Params.assets.favicon | default "favicon.ico" | absURL }}" />
|
|
<link rel="apple-touch-icon" sizes="180x180" href="{{ site.Params.assets.appleTouchIcon | default "apple-touch-icon.png" | absURL }}" />
|
|
<link rel="manifest" href="{{ site.Params.assets.manifest | default "manifest.json" | absURL }}" />
|
|
</head>
|