10 lines
322 B
JavaScript
10 lines
322 B
JavaScript
'use strict';
|
|
if (!hexo.config.lazyload || !hexo.config.lazyload.enable) {
|
|
return;
|
|
}
|
|
if (hexo.config.lazyload.onlypost) {
|
|
hexo.extend.filter.register('after_post_render', require('./lib/process').processPost);
|
|
} else {
|
|
hexo.extend.filter.register('after_render:html', require('./lib/process').processSite);
|
|
}
|