e100d069edb20143129455c58043bda88dbec5b9
[theme-danix.xyz.git] / layouts / partials / head.html
1 <head>
2 <meta charset="utf-8">
3 <meta name="viewport" content="width=device-width, initial-scale=1">
4 <link rel="profile" href="https://gmpg.org/xfn/11">
5
6 {{ $style_options := (dict "targetPath" "css/style.css" "outputStyle" "compressed" "transpiler" "dartsass" "enableSourceMap" (not hugo.IsProduction)) }}
7 {{ $style := resources.Get "sass/main.scss" | resources.ToCSS $style_options }}
8
9 <link rel="stylesheet" href="{{ $style.RelPermalink }}">
10 {{ partial "funcs/favicon.html" . }}
11 <link rel="canonical" href="{{ .Permalink }}">
12
13 {{ with .OutputFormats.Get "rss" -}}
14 {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
15 {{ end -}}
16
17 {{ $title := print .Site.Title " ⋇ " .Title }}
18 {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
19 <title>{{ $title }}</title>
20
21 {{ template "_internal/opengraph.html" . }}
22 {{ template "_internal/schema.html" . }}
23 {{ template "_internal/twitter_cards.html" . }}
24
25 {{- partial "head-addition.html" . -}}
26
27 </head>