summaryrefslogtreecommitdiff
path: root/layouts/partials/header.html
diff options
context:
space:
mode:
authorShubham Saini <me@ubh.sh>2023-02-09 00:19:28 +0000
committerShubham Saini <me@ubh.sh>2023-02-09 00:19:28 +0000
commitd7da16ecfa5cadb643df78694db44963ba665cbe (patch)
tree00c5234f542f7064e91827064767bcf59f094a2c /layouts/partials/header.html
init
Diffstat (limited to 'layouts/partials/header.html')
-rwxr-xr-xlayouts/partials/header.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
new file mode 100755
index 0000000..548acb1
--- /dev/null
+++ b/layouts/partials/header.html
@@ -0,0 +1,22 @@
1<head>
2 <meta charset="utf-8" />
3 <meta http-equiv="X-UA-Compatible" content="IE=edge">
4 {{- $title := ( .Title ) -}}
5 {{- $siteTitle := ( .Site.Title ) -}}
6 {{- if .IsHome -}}
7 <title>{{ $siteTitle }}</title>
8 {{- else -}}
9 <title>{{ $title }}</title>
10 {{- end -}}
11 {{- if isset .Site.Params "favicon" -}}
12 <link rel="icon" type="image/png" href={{ .Site.Params.favicon }} />
13 {{- end -}}
14 <meta name="viewport" content="width=device-width, initial-scale=1">
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 <link rel="stylesheet" type="text/css" media="screen" href="/css/main.css" />
19 {{- if or (eq .Site.Params.mode "auto") (eq .Site.Params.mode "dark") -}}
20 <link rel="stylesheet" type="text/css" href="/css/dark.css" {{ if eq .Site.Params.mode "auto" }}media="(prefers-color-scheme: dark)"{{ end }} />
21 {{- end -}}
22</head>