blob: 56e7887d0663be86630907040e1acb2b72a77b4c (
plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
<head>
<meta charset='utf-8'/>
{{/* add go-import meta tag */}}
{{/* ref: https://go.dev/ref/mod#vcs-find */}}
{{- if .Page.Params.go_import -}}
<meta
name='go-import'
content='{{- .Page.Params.go_import -}}'
/>
{{- end -}}
{{/* set responsive viewport */}}
<meta name='viewport' content='width=device-width, initial-scale=1'/>
{{/* add site description */}}
<meta
name='description'
content='{{- default "" .Site.Params.description -}}'
/>
<title>
{{- block "title" . -}}
{{- .Page.Title -}}
{{- end -}}
</title>
{{/* load stylesheet */}}
{{- $options := (dict "targetPath" "style.css" "outputStyle" "compressed" "enableSourceMap" false) -}}
{{- $style := resources.Get "style.sass" | resources.ToCSS $options | resources.Fingerprint -}}
<link
rel='stylesheet'
type='text/css'
href='{{ $style.Permalink }}'
integrity='{{ $style.Data.Integrity }}'
/>
{{/* load javascript */}}
{{- $script := resources.Get "script.js" | js.Build "script.js" | minify | fingerprint -}}
<script
type='text/javascript'
src='{{ $script.Permalink }}'
integrity='{{ $script.Data.Integrity }}'
defer
></script>
{{/* add feeds */}}
{{- range .AlternativeOutputFormats -}}
{{- printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML -}}
{{- end -}}
</head>
|