-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathhead.html
More file actions
27 lines (23 loc) · 1.26 KB
/
head.html
File metadata and controls
27 lines (23 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<head>
<title>{{ .Site.Title }}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="{{if .IsHome}}{{ $.Site.Params.description }}{{else}}{{.Description}}{{end}}" />
{{/* Adds favicon specification to config.toml */}}
<link rel="icon" type= {{
if $.Site.Params.favicon_type }}{{ path.Join "image/" $.Site.Params.favicon_type }}{{ else }}{{ "image/x-icon" }}{{end
}} href= {{
if $.Site.Params.favicon }}{{ $.Site.Params.favicon }}{{ else }}{{ "/favicon.ico" }}{{end
}}>
{{/* Adds complete override capability */}}
{{ $overrideTemplate := resources.Get "sass/override.scss" }}
{{ $override := $overrideTemplate | resources.ExecuteAsTemplate "css/theme.scss" . | toCSS | minify }}
<link rel="stylesheet" href="{{ $override.RelPermalink }}">
{{/* Adds custom styles capability */}}
{{ $customTemplate := resources.Get "sass/custom.scss" }}
{{ if $customTemplate }}
{{ $custom := $customTemplate | resources.ExecuteAsTemplate "css/custom.scss" . | toCSS | minify }}
<link rel="stylesheet" href="{{ $custom.RelPermalink }}">
{{ end }}
{{ template "_internal/google_analytics.html" . }}
</head>