Inspired from the Carbon Ads integration in the official vuepress documentation and its source code, this theme extends the default vuepress theme with a Carbon Ads slot in the sidebar.
- @nuxtjs/firebase Documentation - See top left corner
yarn add vuepress-theme-carbon -D
# OR npm install vuepress-theme-carbon -D
// .vuepress/config.js
module.exports = {
theme: 'carbon',
themeConfig: {
// Your ad ID and placement label from your Carbon Ads tag:
carbonAds: {
serve: "yourServeId",
placement: "yourPlacementLabel"
},
// All the other options from the default theme:
// ...
}
}
See default theme config.
Thanks to Vuepress.
MIT - Pascal Luther