From 75f5e991d0b3ed4038f91c214d6ba7fe739cee14 Mon Sep 17 00:00:00 2001 From: Jerry <16351105+jerryc127@users.noreply.github.com> Date: Sun, 2 Aug 2020 23:29:44 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=BE=A9=E6=96=87=E7=AB=A0?= =?UTF-8?q?=E9=A0=81=E6=B2=92=E6=9C=89lazyload=E7=9A=84bugs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/filters/post_lazyload.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/filters/post_lazyload.js b/scripts/filters/post_lazyload.js index b5cb3b1..c279633 100644 --- a/scripts/filters/post_lazyload.js +++ b/scripts/filters/post_lazyload.js @@ -11,5 +11,6 @@ const urlFor = require('hexo-util').url_for.bind(hexo) hexo.extend.filter.register('after_post_render', data => { if (!hexo.theme.config.lazyload.enable) return const bg = hexo.theme.config.lazyload.post ? urlFor(hexo.theme.config.lazyload.post) : 'data:image/gif;base64,R0lGODdhAQABAPAAAMPDwwAAACwAAAAAAQABAAACAkQBADs=' - return data.content.replace(/(