-
Notifications
You must be signed in to change notification settings - Fork 41
/
Layout.astro
174 lines (160 loc) · 3.53 KB
/
Layout.astro
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
---
// Component imports
import { SEO } from "astro-seo"
// Style imports
import "@style/tailwind.css"
// Helper imports
import { seoConfig } from "@util/seoConfig"
// Props
export interface Props {
/** Title of the page. */
title: string
/** Specific OpenGraph page title. */
ogTitle?: string
/** Description of the page. */
description?: string
/** Image thumbnail for the page. */
image?: {
url: string
alt: string
}
/** Whether or not to disable indexing */
disableIndexing?: boolean
}
const {
title,
ogTitle,
description,
image,
disableIndexing = false
} = Astro.props as Props
---
<html lang="en">
<head>
<!-- SEO. -->
<SEO
title={title}
description={seoConfig.description || description}
noindex={disableIndexing}
nofollow={disableIndexing}
openGraph={{
basic: {
title: ogTitle || title,
type: "website",
image: seoConfig.image.url || image.url
},
image: {
width: seoConfig.image.width,
height: seoConfig.image.height,
alt: seoConfig.image.alt || image.alt
},
optional: {
siteName: seoConfig.siteName,
description: seoConfig.description || description
}
}}
twitter={{
card: seoConfig.twitter.card
}}
/>
<!-- Global meta tags. -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Favicons. -->
<link
rel="apple-touch-icon"
sizes="57x57"
href="/favicons/favicon-57x57.png"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="/favicons/favicon-60x60.png"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="/favicons/favicon-72x72.png"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="/favicons/favicon-76x76.png"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="/favicons/favicon-114x114.png"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="/favicons/favicon-120x120.png"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="/favicons/favicon-144x144.png"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="/favicons/favicon-152x152.png"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="/favicons/favicon-180x180.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/favicons/favicon-16x16.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/favicons/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="/favicons/favicon-96x96.png"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="/favicons/favicon-192x192.png"
/>
<link
rel="shortcut icon"
type="image/x-icon"
href="/favicons/favicon.ico"
/>
<link rel="icon" type="image/x-icon" href="/favicons/favicon.ico" />
<meta name="msapplication-TileColor" content="#30E130" />
<meta
name="msapplication-TileImage"
content="/favicons/favicon-144x144.png"
/>
<meta name="msapplication-config" content="/browserconfig.xml" />
<link rel="icon" type="image/svg+xml" href="/favicons/favicon.svg" />
<meta name="theme-color" content="#30E130" />
<!-- Service worker registration. -->
<script is:inline src="/registerSW.js"></script>
<link rel="manifest" href="/manifest.webmanifest" />
</head>
<body class="min-h-screen flex flex-col w-full overflow-x-hidden">
<main class="flex flex-1 flex-col h-[100%] w-full">
<slot />
</main>
<script>
// This is a hack to get vite-plugin-pwa to generate a sw.js file.
// Do not remove this script tag.
</script>
</body>
</html>