-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathhead.html
More file actions
21 lines (18 loc) · 998 Bytes
/
head.html
File metadata and controls
21 lines (18 loc) · 998 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<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}}" />
<link rel="canonical" href="{{ .Permalink }}">
{{/* 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>