<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    {{ if .IsHome }}
        <meta name="description" content="{{ $.Site.Params.description }}">
        <title>{{.Site.Title}}</title>
    {{ else }}
        <title>{{.Site.Title}} / {{ .Title }}</title>

        {{ if .Summary }}
        <meta name="description" content="{{ .Summary }}">
        {{ else }}
        <meta name="description" content="{{ .Title }}">
        {{ end }}
    {{ end }}

    <link href="/blog/index.xml" rel="alternate" type="application/rss+xml" title="{{ $.Site.Params.author }}'s blog">

    {{ $style := resources.Get "css/site.css" }}
    {{ if hugo.IsProduction }}
        {{ $style = $style | minify | fingerprint | resources.PostProcess }}
    {{ end }}
    <link href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}" rel="stylesheet">

    <link rel="shortcut icon" href="/favicon.ico?v=3" type="image/x-icon">
    <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?v=2">
    <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v=2">

    <meta name="robots" content="noai">
    <meta name="fediverse:creator" content="{{ $.Site.Params.fediverse_url }}" />

    {{ if .Params.nsfw }}
        <meta name="robots" content="noindex">
        <meta name="rating" content="adult">
    {{ end }}

    {{ partial "opengraph.html" . }}
</head>
