1
1
// theme.config.js
2
2
export default {
3
- projectLink : 'https://github.com/brianc/node-postgres' , // GitHub link in the navbar
4
- docsRepositoryBase : 'https://github.com/brianc/node-postgres/blob/master' , // base URL for the docs repository
3
+ project : {
4
+ link : 'https://github.com/brianc/node-postgres' ,
5
+ } ,
6
+ twitter : {
7
+ cardType : 'summary_large_image' ,
8
+ site : 'https://node-postgres.com' ,
9
+ } ,
10
+ docsRepositoryBase : 'https://github.com/brianc/node-postgres/blob/master/docs' , // base URL for the docs repository
5
11
titleSuffix : ' – node-postgres' ,
6
- nextLinks : true ,
7
- prevLinks : true ,
8
- search : true ,
9
- customSearch : null , // customizable, you can use algolia for example
10
12
darkMode : true ,
11
13
footer : true ,
12
- footerText : `MIT ${ new Date ( ) . getFullYear ( ) } © Brian Carlson.` ,
13
- footerEditLink : `Edit this page on GitHub` ,
14
+ navigation : {
15
+ prev : true ,
16
+ next : true ,
17
+ } ,
18
+ footer : {
19
+ text : `MIT ${ new Date ( ) . getFullYear ( ) } © Brian Carlson.` ,
20
+ } ,
21
+ editLink : {
22
+ text : 'Edit this page on GitHub' ,
23
+ } ,
14
24
logo : (
15
25
< >
16
26
< svg > ...</ svg >
@@ -22,6 +32,20 @@ export default {
22
32
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" />
23
33
< meta name = "description" content = "Nextra: the next docs builder" />
24
34
< meta name = "og:title" content = "Nextra: the next docs builder" />
35
+ < script async src = "https://www.googletagmanager.com/gtag/js?id=UA-100138145-1" > </ script >
36
+ < script
37
+ dangerouslySetInnerHTML = { {
38
+ __html : `
39
+
40
+ window.dataLayer = window.dataLayer || [];
41
+ function gtag(){dataLayer.push(arguments);}
42
+ gtag('js', new Date());
43
+
44
+ gtag('config', 'UA-100138145-1');
45
+
46
+ ` ,
47
+ } }
48
+ > </ script >
25
49
</ >
26
50
) ,
27
51
}
0 commit comments