CDN.js 292 B

1234567891011
  1. 'use strict';
  2. const { filter } = hexo.extend;
  3. // 替换 CDN
  4. filter.register('before_generate', () => {
  5. const { asset } = hexo.theme.config;
  6. for (const name in asset) {
  7. asset[name] = asset[name]
  8. .replace('//cdn.jsdelivr.net/', '//jscdn.limour.top/');
  9. }
  10. }, 99);