Update process.js
This commit is contained in:
parent
08f3017ba7
commit
8c517546b1
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
const fs = require('hexo-fs');
|
||||
function lazyProcess(htmlContent) {
|
||||
let loadingImage = this.config.lazyload.loadingImg || 'https://cdn.jsdelivr.net/skx@0.0.9/img/lazy.gif';
|
||||
let loadingImage = this.config.lazyload.loadingImg || 'https://img-blog.csdnimg.cn/2022010612032074818.gif';
|
||||
return htmlContent.replace(/<img(\s*?)src="(.*?)"(.*?)>/gi, (str, p1, p2, p3) => {
|
||||
if (/data-src/gi.test(str)) {
|
||||
return str;
|
||||
|
|
Loading…
Reference in New Issue