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/") -}}
|
||
|
{{- if hugo.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.16.9/dist/katex.min.css"
|
||
|
integrity="sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV"
|
||
|
crossorigin="anonymous"
|
||
|
>
|
||
|
|
||
|
<script defer
|
||
|
src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js"
|
||
|
integrity="sha384-XjKyOOlGwcjNTAIQHIpgOno0Hl1YQqzUOEleOLALmuqehneUG+vnGctmUb0ZY0l8"
|
||
|
crossorigin="anonymous"
|
||
|
></script>
|
||
|
|
||
|
<script defer
|
||
|
src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/contrib/auto-render.min.js"
|
||
|
integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05"
|
||
|
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>
|