Skip to content
VuePress plugin for mailchimp
Vue JavaScript
Branch: master
Clone or download

Latest commit

Latest commit f8ab43c Mar 27, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
docs
src fix: typo in default content (#5) Mar 27, 2020
tests/e2e
.eslintrc.js
.gitignore
.npmignore
.prettierrc.js
LICENSE
README.md
cypress.json
package.json
renovate.json
yarn.lock

README.md

vuepress-plugin-mailchimp

NPM version NPM LICENSE Circle ci LGTM

Simplifies subscribing new email addresses to a Mailchimp email list.

Install

First of all, you have to sign up for Mailchimp.

yarn add vuepress-plugin-mailchimp -D
# OR npm install vuepress-plugin-mailchimp -D

Usage

Take a look at Using a Plugin.

// .vuepress/config.js
module.exports = {
  plugins: [
    "vuepress-plugin-mailchimp",
    {
      // You need to provide this plugin with your Mailchimp endpoint in order for it
      // to know where to save the email address. See more detail in Config section.
      endpoint: ""
    }
  ]
};

<SimpleNewsletter/>

This plugin provides a out-of-box component. Since it has been registered automatically, you can simply use it in your .md file.

// .md file

...
your content
...

<SimpleNewsletter/>

or

// .vue file

<template>
  <SimplePagination />
</template>

<script>
import { SimpleNewsletter } from "vuepress-plugin-mailchimp/src/SimpleNewsletter";
export default {
  components: {
    SimpleNewsletter
  }
};
</script>

Check out the full documentation.

License

MIT © Billyyyyy3320

You can’t perform that action at this time.