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