1.0.1 • Published 5 months ago
@waline-plugins/link-interceptor v1.0.1
@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`
});
]
});