summaryrefslogtreecommitdiffstats
path: root/layouts/partials/head.html
blob: b0f1e58bf5e9790f3da259709498e384f0ec1b40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{{/* */}}
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,shrink-to-fit=no">

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

    <title>{{ block "title" . }}{{ if .IsHome }}{{ site.Title }}{{ else }}{{ with .Params.Title }}{{ . }} - {{ end }}{{ site.Title }}{{ end }}{{ end }}</title>
    <meta name="description" content="{{ (partial "description.html" . ) }}">
    <meta name="author" content="{{ (partial "author.html" . ) }}">
    {{ hugo.Generator }}

    {{- partial "styles.html" . }}
    {{- partial "custom-scripts.html" . }}

    {{- /* Favicons */}}
    <link rel="icon" href="{{ site.Params.assets.favicon | default "favicon.ico" | relURL }}" sizes="any"><!-- 32×32 -->
    <link rel="icon" href="{{ site.Params.assets.svgicon | default "icon.svg" | relURL }}" type="image/svg+xml">
    <link rel="apple-touch-icon" href="{{ site.Params.assets.apple_touch_icon | default "apple-touch-icon.png" | relURL }}"><!-- 180×180 -->
    <link rel="manifest" href="{{ site.Params.assets.webmanifest | default "manifest.webmanifest" | relURL }}">

    {{- /* RSS */}}
    {{ range .AlternativeOutputFormats }}
    <link rel="{{ .Rel }}" type="{{ .MediaType.Type | html }}" title="{{ $.Site.Title }}" href="{{ .Permalink | safeURL }}">
    {{- end -}}
    {{- range .AllTranslations -}}
    <link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}">
    {{ end -}}

    {{- partial "custom-head.html" . -}}

    {{- /* Misc */}}
    {{ template "partials/templates/opengraph.html" . }}
</head>