-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathtemplate.html
More file actions
61 lines (58 loc) · 2.06 KB
/
template.html
File metadata and controls
61 lines (58 loc) · 2.06 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="icon"
href="https://nodejs.org/static/images/favicons/favicon.png"
/>
<title>${title}</title>
<meta
name="description"
content="Node.js® is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts."
/>
<link rel="stylesheet" href="${root}styles.css" />
<meta property="og:title" content="${title}" />
<meta
property="og:description"
content="Node.js® is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts."
/>
<meta
property="og:image"
content="https://nodejs.org/en/next-data/og/announcement/Node.js%20%E2%80%94%20Run%20JavaScript%20Everywhere"
/>
<meta property="og:type" content="website" />
<link
rel="canonical"
href="https://nodejs.org/learn${metadata.path.replace('/index', '')}"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&family=Open+Sans:ital,wght@0,300..800;1,300..800"
/>
<!-- Apply theme before paint to avoid Flash of Unstyled Content -->
<script>
document.documentElement.setAttribute(
'data-theme',
(document.documentElement.style.colorScheme =
localStorage.getItem('theme') ||
(matchMedia('(prefers-color-scheme: dark)').matches
? 'dark'
: 'light'))
);
</script>
<script type="importmap">
${importMap}
</script>
<script type="speculationrules">
${speculationRules}
</script>
</head>
<body>
<div id="root">${dehydrated}</div>
<script type="module" src="${root}${entrypoint}"></script>
</body>
</html>