Skip to content

Commit a171dd2

Browse files
committed
ad
1 parent fafae3a commit a171dd2

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

website/docusaurus.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,16 @@ const config = {
151151
darkTheme: prismThemes.dracula,
152152
},
153153
}),
154+
headTags: [
155+
{
156+
tagName: 'script',
157+
attributes: {
158+
async: true,
159+
src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3450324887026774',
160+
crossorigin: 'anonymous',
161+
},
162+
},
163+
],
154164
};
155165

156166
export default config;

website/src/html/head.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// src/html/head.js
2+
import React from 'react';
3+
4+
export default function Head() {
5+
return (
6+
<>
7+
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3450324887026774"
8+
crossorigin="anonymous"></script>
9+
</>
10+
);
11+
}

0 commit comments

Comments
 (0)