@@ -7,16 +7,18 @@ export default {
7
7
theme : 'docs' ,
8
8
plugins : [ 'sidebar' , 'script' , 'gitalk' , 'ga' ] ,
9
9
title : 'TypeScript 入门教程' ,
10
- head : (
11
- < >
12
- < link rel = "icon" type = "image/png" href = "/favicon.png" />
13
- < script
14
- data-ad-client = "ca-pub-8483371329009107"
15
- async
16
- src = "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"
17
- />
18
- </ >
19
- ) ,
10
+ head : < link rel = "icon" type = "image/png" href = "/favicon.png" /> ,
11
+ nav : [
12
+ {
13
+ text : '赞助作者' ,
14
+ link : 'https://github.com/xcatliu/buy-me-a-coffee'
15
+ } ,
16
+ {
17
+ text : 'GitHub' ,
18
+ link : 'https://github.com/xcatliu/typescript-tutorial' ,
19
+ align : 'right'
20
+ }
21
+ ] ,
20
22
sidebar : [
21
23
{
22
24
link : 'introduction/README.md' ,
@@ -61,17 +63,22 @@ export default {
61
63
} ,
62
64
'thanks/README.md'
63
65
] ,
64
- nav : [
65
- {
66
- text : '赞助作者' ,
67
- link : 'https://github.com/xcatliu/buy-me-a-coffee'
68
- } ,
69
- {
70
- text : 'GitHub' ,
71
- link : 'https://github.com/xcatliu/typescript-tutorial' ,
72
- align : 'right'
73
- }
74
- ] ,
66
+ tocAd : (
67
+ < div
68
+ dangerouslySetInnerHTML = { {
69
+ __html : `
70
+ <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
71
+ <!-- 192*128 -->
72
+ <ins class="adsbygoogle"
73
+ style="display:inline-block;width:192px;height:128px"
74
+ data-ad-client="ca-pub-8483371329009107"
75
+ data-ad-slot="6487368873"></ins>
76
+ <script>
77
+ (adsbygoogle = window.adsbygoogle || []).push({});
78
+ </script>`
79
+ } }
80
+ />
81
+ ) ,
75
82
gitalk : {
76
83
clientID : '29aa4941759fc887ed4f' ,
77
84
clientSecret : '33e355efdf3a1959624506a5d88311145208471b' ,
0 commit comments