Skip to content
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.

spekulatius/vuepress-plugin-adsense

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google AdSense Plugin for VuePress

Sometimes you might want ad some ads to monetize your VuePress-based documentation site or blog.

Install

To install the VuePress plugin run one of the following commands:

npm install vuepress-plugin-adsense

# or

yarn add vuepress-plugin-adsense

Configuration

Add the vuepress plugin in your site or theme config file. The configuration is done as part of the plugin-configuration. Your configuration file is usually located under .vuepress/config.js. Extend it with this line:

module.exports = {
  plugins: [
    'google-adsense': { adClient: 'ca-pub-9502576386405849' }

    // other plugins
    // ...
  ]
}

You will get the required parameters from Google AdSense.

For more details on how to work with VuePress plugins check the official docs.

License

This package is release under the MIT license by Peter Thaleikis.