<meta charset="utf-8">
<meta name="viewport" content="width=device-width">

{{ $faviconPath := (.Site.Params.faviconPath | default "" | absURL) }}


<link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<meta name="apple-mobile-web-app-title" content="{{ site.Title }}" />
<link rel="manifest" href="/site.webmanifest" />
<link rel=“icon” type=“image/png” href=“/favicon-96x96.png” sizes=“96x96” />
<link rel=“icon” type=“image/svg+xml” href=“/favicon.svg” />
<link rel=“快捷方式图标” href=“/favicon.ico” />
<link rel=“apple-touch-icon” sizes=“180x180” href=“/apple-touch-icon.png” />
<meta name=“apple-mobile-web-app-title” content=“{{ site.Title }}” />
<link rel=“manifest” href=“/site.webmanifest” />

{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
{{ end }}

{{- if .IsHome -}}
<meta name="description" content="{{ site.Params.Description }}"/>
{{- else -}}
<meta name="description" content="{{ .Params.Description }}"/>
{{- end }}

{{ if .Param "fediverse" }}
<meta name="fediverse:creator" content="{{ .Params.Fediverse }}">
{{ end }}

<title>
    {{ if .IsHome }}
    {{ site.Title }}
    {{ else }}
    {{ printf "%s | %s" .Title site.Title }}
    {{ end }}
</title>

<link rel="canonical" href="{{ .Permalink }}"/>

{{ template "_internal/opengraph.html" . }}

{{ partialCached "head/css.html" . }}
{{ partialCached "head/js.html" . }}

{{ if hugo.IsProduction }}
{{ template "_internal/google_analytics.html" . }}

{{ if .Site.Params.umami.enable }}
{{ partial "umami.html" . }}
{{ end }}
{{ end }}

