-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathhead.html
More file actions
91 lines (82 loc) · 3.84 KB
/
head.html
File metadata and controls
91 lines (82 loc) · 3.84 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<head>
<meta charset="utf-8">
<title>{{ .Title }}</title>
{{ "<!-- mobile responsive meta -->" | safeHTML }}
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
<meta name="description" content='{{T "meta_description"}}'>
<meta name="keywords" content='{{T "meta_keywords"}}'>
{{ with site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
{{ hugo.Generator }}
{{ "<!-- plugins -->" | safeHTML }}
{{ range site.Params.plugins.css }}
<link rel="stylesheet" href="{{ .link | absURL }}">
{{ end }}
{{ if .Params.Quiz }}
<link rel="stylesheet" href="/plugins/quizdown/quizdown.css" />
{{ end }}
{{ "<!-- jQuery and Bootstrap Dependencies -->" | safeHTML }}
<script src="https://code.jquery.com/jquery-3.6.0.min.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.min.js" crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
{{ "<!-- Main Stylesheet -->" | safeHTML }}
{{ $style := resources.Get "scss/style.scss" | toCSS | minify }}
<link href="{{ $style.Permalink }}" rel="stylesheet" media="screen"/>
<link rel="apple-touch-icon" sizes="180x180" href="/images/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicons/favicon-16x16.png">
<link rel="manifest" href="/images/favicons/site.webmanifest">
<link rel="mask-icon" href="/images/favicons/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/images/favicons/favicon.ico">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="/images/favicons/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<meta name="layout" content="{{ .Kind }} - {{ .Layout }} - {{ .Type }} - {{ .Section }} - {{ .CurrentSection }}">
{{ if .IsTranslated }}
{{ range .Translations }}
<link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}" title="{{ .Language.LanguageName }}">
{{ end }}
{{ end }}
{{ template "_internal/opengraph.html" . }}
{{ if .Params.Image }}
{{ with .Params.Image }}
<meta property="og:image" content="{{ . | absURL }}" />
{{ end }}
{{else}}
{{ with site.Params.defaultImage }}
<meta property="og:image" content="{{ . | absURL }}" />
{{ end }}
{{ end }}
{{ if not hugo.IsServer }}
<!-- Google Analytics 4 -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.Params.googleAnalytics }}" crossorigin="anonymous"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ site.Params.googleAnalytics }}', {
'cookie_flags': 'SameSite=None;Secure',
'anonymize_ip': true,
'client_storage': 'none'
});
</script>
{{ end }}
{{ "<!-- ENTERING LDJSON for events -->" | safeHTML }}
{{ if .IsPage }}
{{ if eq .Type "events" }}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Event",
"name": "{{ .Params.Title }}",
"startDate": "{{ .Params.date.Format "2006-01-02T15:04:05JST" }}",
"url": "{{ .Params.youtubeLink }}",
"image": "{{ .Params.image | absURL }}",
}
</script>
{{ end }}
{{ end }}
{{ "<!-- LEAVING LDJSON for events -->" | safeHTML }}
{{ "<!-- Mastodon verification code -->" | safeHTML }}
<link href="https://fosstodon.org/@innersource" rel="me">
</head>