-
Notifications
You must be signed in to change notification settings - Fork 1
/
template.ejs
38 lines (38 loc) · 1.55 KB
/
template.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="keywords" content="<%= keywords %>">
<meta name="description" content="<%= description %>">
<title><%= title %></title>
<link rel="shortcut icon" href="<%= rootPath %>/img/favicon.ico"/>
<%_ if (vendorCssPath) { _%>
<link rel="stylesheet" href="<%= rootPath %>/build/<%= vendorCssPath %>">
<%_ } _%>
<%_ if (pageCssPath) { _%>
<link rel="stylesheet" href="<%= rootPath %>/build/<%= pageCssPath %>">
<%_ } _%>
</head>
<body>
<div id="root"><%- __html %></div>
<script src="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/react/18.2.0/umd/react.production.min.js" type="application/javascript"></script>
<script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/react-dom/18.2.0/umd/react-dom.production.min.js" type="application/javascript"></script> <script>window.rootPath = '<%= rootPath %>';</script>
<%_ if (vendorJsPath) { _%>
<script src="<%= rootPath %>/build/<%= vendorJsPath %>"></script>
<%_ } _%>
<%_ if (pageJsPath) { _%>
<script src="<%= rootPath %>/build/<%= pageJsPath %>"></script>
<%_ } _%>
<!-- 百度统计 -->
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?d06607a756285735eb4e18d467599a0c";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>