added data/socials to manage social links inside templates. General cleanup of the...
[theme-danix.xyz.git] / layouts / partials / head.html
CommitLineData
213775dd 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">
a3fbbedb 5
0605a97a 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 }}
a3fbbedb 8
9
0605a97a 10 <link rel="stylesheet" href="{{ "assets/css/dagreynix_fonts.css" | absURL }}">
11 <link rel="stylesheet" href="{{ $style.RelPermalink }}">
213775dd 12 {{ partial "funcs/favicon.html" . }}
13 <link rel="canonical" href="{{ .Permalink }}">
14
15 {{ with .OutputFormats.Get "rss" -}}
16 {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
17 {{ end -}}
18
19 {{ $title := print .Site.Title " ⋇ " .Title }}
20 {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
21 <title>{{ $title }}</title>
22
23 {{ template "_internal/opengraph.html" . }}
24 {{ template "_internal/schema.html" . }}
25 {{ template "_internal/twitter_cards.html" . }}
26
27 {{- partial "head-addition.html" . -}}
28
29</head>