-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.ejs
75 lines (66 loc) · 2.31 KB
/
index.ejs
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
<%
const isSSR = typeof ssrContext !== 'undefined';
function get(name, defaultValue) {
if (typeof htmlWebpackPlugin !== 'undefined') {
return htmlWebpackPlugin.options[name];
} else {
return ssrContext[name] || defaultValue;
}
}
%>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Marketplace</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
<link rel="icon" type="image/png" href="/master/favicon.png"/>
<link href="<%= get('publicPath')%>preload.css" rel="preload" as="style">
<link href="<%= get('publicPath')%>preload.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;1,300;1,400;1,700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@100;300;500&display=swap" rel="stylesheet">
<% if (isSSR) { %>
<%-get('preHeading', '')%>
<% } else { %>
<%=get('preHeading', '')%>
<% } %>
<% if (isSSR) { %>
<%-get('postHeading', '')%>
<% } else { %>
<%=get('postHeading', '')%>
<% } %>
<%- get('initialStyles', '')%>
</head>
<body>
<div id="root"><%- get('initialHtml', '')%></div>
<% if (isSSR) { %>
<%-get('preContent', '')%>
<% } else { %>
<%=get('preContent', '')%>
<% } %>
<%if (isSSR) { %>
<% if (get('initialProps')) { %>
<script id="initialPropsInjector">
ssrInitialProps = <%-JSON.stringify(get('initialProps'))%>
var elem = document.getElementById("initialPropsInjector");
elem.parentNode.removeChild(elem);
</script>
<% } %>
<% if (get('isProduction') === true) { %>
<script src="<%= get('publicPath') + get('buildId')%>.js"></script>
<% } else { %>
<script src="<%= get('publicPath')%>app.js"></script>
<% } %>
<script src="<%= get('publicPath')%>react-core.js"></script>
<script src="<%= get('publicPath')%>app-vendors.js"></script>
<% } %>
<% if (isSSR) { %>
<%-get('postContent', '')%>
<% } else { %>
<%=get('postContent', '')%>
<% } %>
</body>
</html>