-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tags page not display tag cloud 标签页没有显示标签云 #510
Comments
Thanks for opening this issue, maintainers will get back to you as soon as possible! |
执行一下 |
尝试过了,显示结果还是和截图一样,是否还有其他地方我没有配置成功? |
我尝试hexo new page test 然后在 test里面:
然后不从tags的按钮进入,而是在网页上输入 localhost:4000/test/, 在此页面上可以正常显示tag cloud,我想知道为什么会这样,似乎把page的名字写成tags是导致错误的一步。 |
另外,我在local测试的时候,如果有一个tag叫做array,localhost:4000/test/ 与 localhost:4000/test/array 都可以正常显示, 但是hexo deploy之后 xunzhan.github.io/test/ 可以正常显示但 xunzhan.github.io/test/array不能显示(404) |
@XunZhan 看一下是没有文件还是 deploy 后 要 .../test/array/ 才是正常路径 |
抱歉之前写错了,hexo deploy之后 xunzhan.github.io/test/ 可以正常显示, xunzhan.github.io/test/array/不能显示(404),xunzhan.github.io/tags/array/可以正常显示(且结果正确)。 我觉得这样改其实比较trick,主要想知道为什么生成一个名为tags 的page后不能正常显示tag cloud的页面 |
目前我debug到的问题是,对于test page 和tags page,两者从layout/_layout.njk进入,然后在 |
删除一部分hexo config里面不相关的东西之后解决了,删除的部分:
另外,如果使用category的第一个字母大写时需要添加category map(hexo config里面)否则不能正常link到指定页面 |
hexojs/hexo-generator-tag#2 |
This thread has been automatically locked since there has not been any recent activity after it was closed. It is possible issue was solved or at least outdated. Feel free to open new for related bugs. |
Please follow this Issue template to provide relevant information, such as source code repository, website URL and screenshots, which will help us investigate.
请按照此 Issue 模版提供相关信息,例如源码仓库、网站链接和屏幕截图,这将有助于我们进行调查。
Issue Checklist
Expected behavior
After config the tags pages according to the doc, the tag cloud should be displayed
根据教程配置标签页之后应显示标签云
Actual behavior
Instead of the tag cloud, there is only the time line with post titles.
没有标签云,而是一个和archive页面很像的时间轴,应该显示的是tag.njk的内容,而非_partials/page/tags.njk.
Steps to reproduce the behavior
hexo new page tags
生成tags页面Environment Information
MacOS + VSCode
Node.js and NPM Information
Package dependencies Information
Hexo Configuration
NexT Configuration
Other Information
The text was updated successfully, but these errors were encountered: