Skip to content

Commit fafae3a

Browse files
committed
add ads
1 parent 2e7bb11 commit fafae3a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

website/src/theme/Layout/index.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import React from 'react';
2+
// 导入原始的 Layout 组件
3+
import OriginalLayout from '@theme-original/Layout';
4+
5+
export default function Layout(props) {
6+
return (
7+
<>
8+
<OriginalLayout {...props} />
9+
<script
10+
async
11+
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3450324887026774"
12+
crossorigin="anonymous"
13+
></script>
14+
</>
15+
);
16+
}

0 commit comments

Comments
 (0)