-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhtml-template.mjs
52 lines (42 loc) · 1.67 KB
/
html-template.mjs
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
const url = "https://kristorres.pages.dev"
const app = {
name: "Ferrers Rocher",
description: "A web app that animates bijections of integer partitions.",
image: `${url}/images/ferrers-rocher-ios-icon.png`,
url: `${url}/ferrers-rocher`,
}
const htmlTemplate = (options) => `<!DOCTYPE html>
<html>
<head>
<title>${app.name} | Kris Torres</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" />
<meta name="author" content="Kris Torres" />
<meta name="description" content="${app.description}" />
<meta property="og:type" content="website" />
<meta property="og:title" content="${app.name}" />
<meta property="og:description" content="${app.description}" />
<meta property="og:image" content="${app.image}" />
<meta property="og:url" content="${app.url}" />
<meta name="theme-color" content="#2774ae" />
<link rel="icon" type="image/png" href="/images/ferrers-rocher-favicon.png" />
<link rel="apple-touch-icon" type="image/png" href="/images/ferrers-rocher-ios-icon.png" />
<link rel="manifest" type="application/json" href="manifest.json" />
</head>
<body>
<style ws-root>
html {
-webkit-text-size-adjust: none;
}
.ws-style {
--no-select:
"-webkit-user-select: none"
"user-select: none"
;
}
</style>
<script type="module" src="${options.files.js[0].fileName}"></script>
</body>
</html>
`
export default htmlTemplate