67 lines
2.3 KiB
HTML
67 lines
2.3 KiB
HTML
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
<link rel="icon" href="{{ if (isset .Site.Params "favicon") }}{{ .Site.Params.favicon }}{{ else }}/favicon.ico{{ end }}">
|
|
|
|
<title>
|
|
{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ site.Title }}
|
|
</title>
|
|
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end -}}" />
|
|
{{- if .Keywords }}
|
|
<meta name="keywords" content="{{ delimit .Keywords "," }}" />
|
|
{{ end -}}
|
|
{{- if .Params.Author }}
|
|
<meta name="author" content="{{ .Params.Author}}" />
|
|
{{ end -}}
|
|
|
|
{{ hugo.Generator }}
|
|
|
|
{{- $styles := resources.Get "css/styles.css" | postCSS (dict "config" "./assets/css/postcss.config.js") -}}
|
|
{{- if .Site.IsServer }}
|
|
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" />
|
|
{{ else }}
|
|
{{- $styles := $styles| minify | fingerprint | resources.PostProcess -}}
|
|
<link
|
|
rel="stylesheet"
|
|
href="{{ $styles.Permalink }}"
|
|
integrity="{{ $styles.Data.Integrity }}"
|
|
/>
|
|
{{ end -}}
|
|
|
|
<!-- Katex support -->
|
|
{{ if .Params.math }}
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://cdn.jsdelivr.net/npm/katex@0.10.0-rc.1/dist/katex.min.css"
|
|
integrity="sha384-D+9gmBxUQogRLqvARvNLmA9hS2x//eK1FhVb9PiU86gmcrBrJAQT8okdJ4LMp2uv"
|
|
crossorigin="anonymous"
|
|
>
|
|
|
|
<script defer
|
|
src="https://cdn.jsdelivr.net/npm/katex@0.10.0-rc.1/dist/katex.min.js"
|
|
integrity="sha384-483A6DwYfKeDa0Q52fJmxFXkcPCFfnXMoXblOkJ4JcA8zATN6Tm78UNL72AKk+0O"
|
|
crossorigin="anonymous"
|
|
></script>
|
|
|
|
<script defer
|
|
src="https://cdn.jsdelivr.net/npm/katex@0.10.0-rc.1/dist/contrib/auto-render.min.js"
|
|
integrity="sha384-yACMu8JWxKzSp/C1YV86pzGiQ/l1YUfE8oPuahJQxzehAjEt2GiQuy/BIvl9KyeF"
|
|
crossorigin="anonymous"
|
|
onload="renderMathInElement(document.body);"
|
|
></script>
|
|
{{ end }}
|
|
|
|
{{ range .AlternativeOutputFormats -}}
|
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
|
{{ end -}}
|
|
|
|
{{ template "_internal/opengraph.html" . }}
|
|
{{ template "_internal/twitter_cards.html" . }}
|
|
{{ template "_internal/schema.html" . }}
|
|
|
|
{{ if gt (len .Site.Languages) 1}}
|
|
<meta name="lang" content="{{ .Site.Language }}" />
|
|
{{ end }}
|
|
</head>
|