-
Notifications
You must be signed in to change notification settings - Fork 551
/
Copy pathstatic.config.js
44 lines (43 loc) · 1.3 KB
/
static.config.js
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
import React from 'react';
import path from 'path'
export default {
Document: ({
Html,
Head,
Body,
children,
state: {siteData, renderMeta},
}) => (
<Html lang="en-US">
<Head>
<meta charSet="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>编程导航 - 程序员必备主页</title>
<meta name="description" content="编程导航,最专业的程序员导航网站,发现优质编程学习资源,定制你的程序员必备主页,公众号编程导航" />
<meta name="keywords" content="编程,程序员,导航,资源,主页,编程导航" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<script src="baiduAnalyze.js"></script>
</Head>
<Body>{children}</Body>
</Html>
),
silent: true,
getRoutes: async () => {
return [
{
path: 'search',
template: 'src/pages/search/index',
}
]
},
plugins: [
[
require.resolve('react-static-plugin-source-filesystem'),
{
location: path.resolve('./src/pages'),
},
],
require.resolve('react-static-plugin-reach-router'),
require.resolve('react-static-plugin-sitemap'),
],
}