cleaning up code again
[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 {{ $sass_options := (dict "targetPath" "css/site.css" "outputStyle" "compressed" "transpiler" "dartsass") }}
7 {{ $sass_template := resources.Get "sass/main.scss" }}
8 {{ $main_style := $sass_template | resources.toCSS $sass_options }}
9
10 <link rel="stylesheet" href="{{ $main_style.RelPermalink }}">
11
12
13 <!-- <link rel="stylesheet" href="{{ "assets/css/dagreynix_fonts.css" | absURL }}">
14 <link rel="stylesheet" href="{{ "assets/css/dagreynix.css" | absURL }}"> -->
15 {{ partial "funcs/favicon.html" . }}
16 <link rel="canonical" href="{{ .Permalink }}">
17
18 {{ with .OutputFormats.Get "rss" -}}
19 {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
20 {{ end -}}
21
22 {{ $title := print .Site.Title " ⋇ " .Title }}
23 {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
24 <title>{{ $title }}</title>
25
26 {{ template "_internal/opengraph.html" . }}
27 {{ template "_internal/schema.html" . }}
28 {{ template "_internal/twitter_cards.html" . }}
29
30 {{- partial "head-addition.html" . -}}
31
32 </head>