-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
45 lines (42 loc) · 1.62 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description"
content="Pressbooks Directory is a free, searchable catalog that includes over 6,000 open access books published by hundreds of organizations and networks using Pressbooks."/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<% if (environment === 'production') { %>
<meta name="robots" content="index, follow"/>
<% } else { %>
<meta name="robots" content="noindex, nofollow"/>
<% } %>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script>
const GA = '<%- GA %>';
const GUA = '<%- GUA %>';
const gaMeasurementIDs = [
GA,
GUA,
];
for (const gaMeasurementID of gaMeasurementIDs) {
if (gaMeasurementID) {
const scriptTag = decodeURI("%3Cscript async src='https://www.googletagmanager.com/gtag/js?id=" + gaMeasurementID + "'%3E%3C/script%3E");
document.write(scriptTag);
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', gaMeasurementID, {'send_page_view': true});
}
}
</script>
<link rel="icon" href="/favicon.png"/>
<title>Pressbooks Directory</title>
</head>
<body class="antialiased font-sans bg-white text-gray-900">
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>