forked from wuhan2020/wuhan2020.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.ejs
54 lines (45 loc) · 1.81 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!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 %>" />
<meta name="baidu-site-verification" content="FQ6eOEi529" />
<meta name="google-site-verification" content="MAGtB2GHGYz6jBJi37SzGuOeIaKWw0QolEgWWQ6uChI" />
<!-- 网页标签标题 -->
<title><%= title %></title>
<link rel="shortcut icon" href="/images/wuhan2020-mini.png" />
<link rel="stylesheet" href="<%= rootPath %>/build/<%= page %>.css" />
</head>
<body>
<div id="root"><%- __html %></div>
<% if (env === 'prod') { %>
<script src="/lib/react.production.min.js"></script>
<script src="/lib/react-dom.production.min.js"></script>
<% } else { %>
<script src="/lib/react.development.js"></script>
<script src="/lib/react-dom.development.js"></script>
<% } %>
<script>
window.rootPath = '<%= rootPath %>';
</script>
<script src="<%= rootPath %>/build/<%= page %>.js"></script>
<% if (env === 'prod') { %>
<script type="text/javascript" src="https://translate.google.cn/translate_a/element.js?cb=googleTranslateElementInit"></script>
<script type="text/javascript">
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?b6e4b6fa9a64719756faaf4e9b314bb7";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
function googleTranslateElementInit() {
new google.translate.TranslateElement({}, 'google_translate_element');
}
</script>
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<% } %>
</body>
</html>