ezhil/layouts/partials/header.html

41 lines
1.8 KiB
HTML
Raw Normal View History

2019-04-09 20:59:17 +00:00
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
{{- $title := ( .Title ) -}}
{{- $siteTitle := ( .Site.Title ) -}}
{{- if .IsHome -}}
<title>{{ $siteTitle }} {{ if isset .Site.Params "subtitle" }}- {{ .Site.Params.Subtitle }}{{ end }} </title>
2019-04-09 20:59:17 +00:00
{{- else -}}
<title>{{ $title }} - {{ $siteTitle }}</title>
2019-04-09 20:59:17 +00:00
{{- end -}}
{{- if isset .Site.Params "favicon" -}}
<link rel="icon" type="image/png" href={{ .Site.Params.favicon }} />
{{- end -}}
2019-04-09 20:59:17 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1">
2019-04-20 08:42:08 +00:00
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
{{- template "_internal/opengraph.html" . -}}
{{- template "_internal/twitter_cards.html" . -}}
2020-04-18 09:47:22 +00:00
<link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,300italic,400italic|Raleway:200,300"
rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/fonts.css" rel="stylesheet">
2019-09-19 17:14:58 +00:00
<link rel="stylesheet" type="text/css" media="screen" href="{{ .Site.BaseURL }}css/normalize.css" />
<link rel="stylesheet" type="text/css" media="screen" href="{{ .Site.BaseURL }}css/main.css" />
2019-10-22 19:04:47 +00:00
{{- if isset .Site.Params "customcss" }}
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}{{ .Site.Params.customCSS }}" />
2019-10-12 17:04:38 +00:00
{{ end }}
2019-10-22 19:04:47 +00:00
{{- if or (eq .Site.Params.mode "auto") (eq .Site.Params.mode "dark") -}}
2020-04-18 09:47:22 +00:00
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/dark.css"
{{ if eq .Site.Params.mode "auto" }}media="(prefers-color-scheme: dark)" {{ end }} />
2019-10-22 19:04:47 +00:00
{{- if isset .Site.Params "customdarkcss" }}
2020-04-18 09:47:22 +00:00
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}{{ .Site.Params.customDarkCSS }}"
{{ if eq .Site.Params.mode "auto" }}media="(prefers-color-scheme: dark)" {{ end }} />
2019-10-22 19:04:47 +00:00
{{- end }}
{{- end }}
2020-04-18 09:47:22 +00:00
</head>