diff --git a/lib/bangumi-generator.js b/lib/bangumi-generator.js index 8c27ef1..659bffb 100644 --- a/lib/bangumi-generator.js +++ b/lib/bangumi-generator.js @@ -111,6 +111,7 @@ module.exports = /*#__PURE__*/function () { source: (_config$type$source = config[type].source) !== null && _config$type$source !== void 0 ? _config$type$source : 'bili', showMyComment: (_config$type$showMyCo = config[type].showMyComment) !== null && _config$type$showMyCo !== void 0 ? _config$type$showMyCo : false, pagination: (_config$type$paginati = config[type].pagination) !== null && _config$type$paginati !== void 0 ? _config$type$paginati : false, + theme: fs.existsSync(path.join(__dirname, "".concat(config.theme, ".css"))) ? config.theme : null, ejsTemplate: fs.readFileSync(path.join(__dirname, "templates/".concat(config[type].source === 'bgm' ? 'bgm' : 'bili', "-template.ejs"))).toString().replace('class="bangumi-item"', 'class="bangumi-item bangumi-hide"'), wantWatch: wantWatch, watched: watched, diff --git a/src/lib/templates/index.css b/src/lib/templates/index.css index 6f35c8a..773da1c 100644 --- a/src/lib/templates/index.css +++ b/src/lib/templates/index.css @@ -267,7 +267,7 @@ a.bangumi-tab { } .bangumi-starlight.stars8 { - width: 405px; + width: 40px; } .bangumi-starlight.stars9 {