From e918ac9a0b44154a93b5c8ce8f07bc85c24a3a42 Mon Sep 17 00:00:00 2001 From: HCLonely Date: Mon, 8 Jul 2024 09:10:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E6=A0=B7=E5=BC=8F=E5=AF=BC=E8=87=B4html=E5=8E=8B?= =?UTF-8?q?=E7=BC=A9=E9=94=99=E8=AF=AF(#479)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/bangumi-generator.js | 4 ++-- package.json | 2 +- src/lib/bangumi-generator.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/bangumi-generator.js b/lib/bangumi-generator.js index fd29c99..cddf80c 100644 --- a/lib/bangumi-generator.js +++ b/lib/bangumi-generator.js @@ -102,8 +102,8 @@ module.exports = /*#__PURE__*/function () { quote: config[type].quote, show: config[type].show || 1, loading: config[type].loading, - metaColor: config[type].metaColor ? "style=\"color:".concat(config[type].metaColor, "\"") : '', - color: config[type].color ? "style=\"color:".concat(config[type].color, "\"") : '', + metaColor: config[type].metaColor, + color: config[type].color, lazyload: (_config$type$lazyload = config[type].lazyload) !== null && _config$type$lazyload !== void 0 ? _config$type$lazyload : true, lazyloadAttrName: config[type].lazyloadAttrName, srcValue: config[type].srcValue || '__image__', diff --git a/package.json b/package.json index 78cc2e3..308d418 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-bilibili-bangumi", - "version": "1.10.0", + "version": "1.10.1", "description": "hexo bilibili番剧页", "main": "index.js", "scripts": { diff --git a/src/lib/bangumi-generator.js b/src/lib/bangumi-generator.js index 099e41c..8f99df3 100644 --- a/src/lib/bangumi-generator.js +++ b/src/lib/bangumi-generator.js @@ -70,8 +70,8 @@ module.exports = async function (locals, type = 'bangumi') { quote: config[type].quote, show: config[type].show || 1, loading: config[type].loading, - metaColor: config[type].metaColor ? `style="color:${config[type].metaColor}"` : '', - color: config[type].color ? `style="color:${config[type].color}"` : '', + metaColor: config[type].metaColor, + color: config[type].color , lazyload: config[type].lazyload ?? true, lazyloadAttrName: config[type].lazyloadAttrName, srcValue: config[type].srcValue || '__image__',