Closed hushanjushi closed 2 years ago
Thanks for opening this issue, maintainers will get back to you as soon as possible!
就是hexo-related-popular-posts这个插件的问题,它已经没人维护了
很好,我解决了它,按https://theme-next.js.org/docs/theme-settings/posts.html#Related-Popular-Posts里的相反步骤把hexo-related-popular-posts关掉就行了
Please follow this Issue template to provide relevant information, such as source code repositories, blog links, and screenshots, which will help us investigate. 请按照此 Issue 模版提供相关信息,例如源码仓库、博客链接和屏幕截图,这将有助于我们进行调查。
Issue Checklist
Expected behavior
tags和categories均可有多个并在tags里被tagcloud被排序
Actual behavior
a.md
title: a date: 2022-01-23 17:02:27 tags: [a,b,c]
b.mdtitle: a date: 2022-01-23 17:02:27 tags: [a,b,c]
a,b,c应被排序并正常输出,但实际只排序,未正常生成a、b post。已确认是由于hexo-related-popular-posts无人维护导致某些函数已经无法运行,建议从next中删除 ERROR Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\post.njk) Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\post.njk) [Line 36, Column 25] Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\post.njk) [Line 26, Column 14] Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\post.njk) Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\_partials\head\head-unique.njk) [Line 13, Column 12] Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\post.njk) [Line 3, Column 3] Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\post.njk) Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\_partials\header\index.njk) [Line 6, Column 15] Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\post.njk) [Line 5, Column 3] Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\post.njk) Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\_partials\header\sub-menu.njk) [Line 2, Column 29] Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\post.njk) Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\_partials\header\sub-menu.njk) Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\post.njk) [Line 9, Column 12] Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\_macro\post.njk) [Line 96, Column 16] Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\_partials\post\post-related.njk) TypeError: this.localeData(...).postformat is not a function at Object._prettifyError (C:\Users\a\Documents\code\Blog\blog\node_modules\nunjucks\src\lib.js:36:11) at C:\Users\a\Documents\code\Blog\blog\node_modules\nunjucks\src\environment.js:563:19 at Template.root [as rootRenderFunc] (eval at _compile (C:\Users\a\Documents\code\Blog\blog\node_modules\nunjucks\src\environment.js:633:18), <anonymous>:45:3) at Template.render (C:\Users\a\Documents\code\Blog\blog\node_modules\nunjucks\src\environment.js:552:10) at C:\Users\a\Documents\code\Blog\blog\node_modules\hexo\lib\plugins\renderer\nunjucks.js:67:37 at _View._compiled (C:\Users\a\Documents\code\Blog\blog\node_modules\hexo\lib\theme\view.js:136:50) at _View.render (C:\Users\a\Documents\code\Blog\blog\node_modules\hexo\lib\theme\view.js:39:17) at C:\Users\a\Documents\code\Blog\blog\node_modules\hexo\lib\hexo\index.js:64:21 at tryCatcher (C:\Users\a\Documents\code\Blog\blog\node_modules\bluebird\js\release\util.js:16:23) at C:\Users\a\Documents\code\Blog\blog\node_modules\bluebird\js\release\method.js:15:34 at RouteStream._read (C:\Users\a\Documents\code\Blog\blog\node_modules\hexo\lib\hexo\router.js:47:5) at RouteStream.Readable.read (node:internal/streams/readable:487:10) at resume_ (node:internal/streams/readable:988:12) at processTicksAndRejections (node:internal/process/task_queues:83:21) ERROR Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\post.njk) Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\post.njk) [Line 36, Column 25] Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\post.njk) [Line 26, Column 14] Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\post.njk) Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\_partials\head\head-unique.njk) [Line 13, Column 12] Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\post.njk) [Line 3, Column 3] Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\post.njk) Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\_partials\header\index.njk) [Line 6, Column 15] Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\post.njk) [Line 5, Column 3] Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\post.njk) Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\_partials\header\sub-menu.njk) [Line 2, Column 29] Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\post.njk) Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\_partials\header\sub-menu.njk) Template render error: (C:\Users\a\Documents\code\Blog\blog\themes\next\layout\post.njk) [Line 9, Column 12] at RouteStream.Readable.read (node:internal/streams/readable:487:10) at resume_ (node:internal/streams/readable:988:12) at processTicksAndRejections (node:internal/process/task_queues:83:21)
Steps to reproduce the behavior
Environment Information
Node.js and NPM Information
Package dependencies Information
Hexo Configuration
NexT Configuration
Other Information
System: Win11 22000.438 Screenshot:
我觉得和这个问题很像,但是这个插件似乎是自动引入的。。。https://github.com/tea3/hexo-related-popular-posts/issues/31