Add gitter integration in minify.js (#300)

This commit is contained in:
2021-06-18 13:28:04 +08:00 committed by GitHub
parent 86873699ab
commit 81f716d289
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,6 +63,10 @@ hexo.extend.filter.register('after_generate', () => {
hexo.route.remove('js/third-party/chat/chatra.js');
}
if (!theme.gitter.enable) {
hexo.route.remove('js/third-party/chat/gitter.js');
}
// Comments
if (!theme.changyan.enable || !theme.changyan.appid || !theme.changyan.appkey) {
hexo.route.remove('js/third-party/comments/changyan.js');