@waline-plugins/link-interceptor

1.0.0 • Public • Published

@waline-plugins/link-interceptor

A Waline plugin that interceptor comment link redirect with a redirect page.

How to Install

npm i @waline-plugins/link-interceptor

How to Use

// index.js
const Waline = require('@waline/vercel');
const LinkInterceptor = require('@waline-plugins/link-interceptor');

module.exports = Waline({
  plugins: [
    LinkInterceptor({
      whiteList: [
        'waline.js.org',
      ],
      blackList: [
        'baidu.com'
      ],
      // interceptorTemplate: `redirect to __URL`
    });
  ]
});

/@waline-plugins/link-interceptor/

    Package Sidebar

    Install

    npm i @waline-plugins/link-interceptor

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    4.01 kB

    Total Files

    4

    Last publish

    Collaborators

    • lizheming