docusaurus添加google广告
- 前端
- 三生万物
- 0
基于2.x版本的 docusaurus,需要安装的插件github地址:https://github.com/hhk7734/docusaurus-plugin-google-adsense
安装
> npm i docusaurus-plugin-google-adsense -S
或
> yarn add -D docusaurus-plugin-google-adsense
使用
module.exports = {
//...
themeConfig: {
//...
googleAdsense: {
dataAdClient: "ca-pub-xxxxxxxxxx",
},
},
plugins: [
'docusaurus-plugin-google-adsense',
],
};
免责申明:本站发布的内容(图片、视频和文字)以转载和分享为主,文章观点不代表本站立场,如涉及侵权请联系站长邮箱:xbc-online@qq.com进行反馈,一经查实,将立刻删除涉嫌侵权内容。