Skip to content

Commit

Permalink
修复:自定义样式导致html压缩错误(#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
HCLonely committed Jul 8, 2024
1 parent 7903abf commit e918ac9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/bangumi-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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__',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-bilibili-bangumi",
"version": "1.10.0",
"version": "1.10.1",
"description": "hexo bilibili番剧页",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/bangumi-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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__',
Expand Down

0 comments on commit e918ac9

Please sign in to comment.