1.0.0 • Published 4 months ago

@waline-plugins/link-interceptor v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

@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`
    });
  ]
});
1.0.0

4 months ago