jerryc127 / hexo-theme-butterfly

🦋 A Hexo Theme: Butterfly
https://butterfly.js.org
Apache License 2.0
7.24k stars 1.3k forks source link

[Bug]: noticeOutdate报错 #1434

Closed W1ndys closed 10 months ago

W1ndys commented 10 months ago

使用的 Butterfly 版本? | What version of Butterfly are you use?

4.12.0

是否修改过主题文件? || Has the theme files been modified?

不是 (No)

使用的瀏覽器? || What browse are you using?

Chrome

使用的系統? || What operating system are you using?

Windows

依賴插件 | Package dependencies Information

$ npm ls --depth 0
hexo-site@0.0.0 F:\blog\blog-butterfly
├── hexo-deployer-git@4.0.0
├── hexo-generator-archive@2.0.0
├── hexo-generator-category@2.0.0
├── hexo-generator-index@3.0.0
├── hexo-generator-tag@2.0.0
├── hexo-renderer-ejs@2.0.0
├── hexo-renderer-marked@6.2.0
├── hexo-renderer-pug@3.0.0
├── hexo-renderer-stylus@3.0.1
├── hexo-server@3.0.0
├── hexo-theme-butterfly@4.12.0
├── hexo-theme-landscape@1.0.0
└── hexo@7.0.0

問題描述 | Describe the bug

这是官方的配置,按照官方配置来的,查了没有历史类似问题,提交一下bug,不知道怎么搞的,按照文档来的 https://butterfly.js.org/posts/4aa8abbe/#%E6%96%87%E7%AB%A0%E9%81%8E%E6%9C%9F%E6%8F%90%E9%86%92 文章过期提醒

FATAL
YAMLException: duplicated mapping key (286:1)

 283 | post_pagination: 1
 284 |
 285 | # Displays outdated notice for  ...
 286 | noticeOutdate:
-------^
 287 |   enable: false
 288 |   style: flat # style: simple/flat
    at generateError (F:\blog\blog-butterfly\node_modules\js-yaml\lib\loader.js:183:10)
    at throwError (F:\blog\blog-butterfly\node_modules\js-yaml\lib\loader.js:187:9)
    at storeMappingPair (F:\blog\blog-butterfly\node_modules\js-yaml\lib\loader.js:358:7)
    at readBlockMapping (F:\blog\blog-butterfly\node_modules\js-yaml\lib\loader.js:1173:9)
    at composeNode (F:\blog\blog-butterfly\node_modules\js-yaml\lib\loader.js:1441:12)
    at readDocument (F:\blog\blog-butterfly\node_modules\js-yaml\lib\loader.js:1625:3)
    at loadDocuments (F:\blog\blog-butterfly\node_modules\js-yaml\lib\loader.js:1688:5)
    at Object.load (F:\blog\blog-butterfly\node_modules\js-yaml\lib\loader.js:1714:19)
    at Hexo.yamlHelper (F:\blog\blog-butterfly\node_modules\hexo\dist\plugins\renderer\yaml.js:22:30)
    at Hexo.tryCatcher (F:\blog\blog-butterfly\node_modules\bluebird\js\release\util.js:16:23)
    at Hexo.<anonymous> (F:\blog\blog-butterfly\node_modules\bluebird\js\release\method.js:15:34)
    at F:\blog\blog-butterfly\node_modules\hexo\dist\hexo\render.js:73:28
    at tryCatcher (F:\blog\blog-butterfly\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (F:\blog\blog-butterfly\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (F:\blog\blog-butterfly\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (F:\blog\blog-butterfly\node_modules\bluebird\js\release\promise.js:649:10)
    at Promise._settlePromises (F:\blog\blog-butterfly\node_modules\bluebird\js\release\promise.js:729:18)
    at _drainQueueStep (F:\blog\blog-butterfly\node_modules\bluebird\js\release\async.js:93:12)
    at _drainQueue (F:\blog\blog-butterfly\node_modules\bluebird\js\release\async.js:86:9)
    at Async._drainQueues (F:\blog\blog-butterfly\node_modules\bluebird\js\release\async.js:102:5)
    at Async.drainQueues [as _onImmediate] (F:\blog\blog-butterfly\node_modules\bluebird\js\release\async.js:15:14)
    at process.processImmediate (node:internal/timers:476:21)

出現問題網站 | Website

W1ndys commented 10 months ago

问题已解决,是我参数写重了