Skip to content
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

侧边栏中的主题分类无法减少 #158

Closed
2 tasks done
wangqian0306 opened this issue Jun 13, 2022 · 3 comments
Closed
2 tasks done

侧边栏中的主题分类无法减少 #158

wangqian0306 opened this issue Jun 13, 2022 · 3 comments

Comments

@wangqian0306
Copy link

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

  • I am using the latest version of hexo-theme-ayer.
  • I have reviewed the latest Roadmap on GitHub and searched for current Ayer Issues, which does not help me.

Expected behavior

依据配置文件显示对应主题:

menu:
  主页: /
  归档: /archives
  分类: /categories
  标签: /tags
  关于我: /2020/about
  测试: /test

Actual behavior

显示了如下主题:

image

默认的主题被重新添加了回来,无法被删去

Steps to reproduce the behavior

Environment Information

Node.js and NPM Information

Package dependencies Information

经过测试 :

1.9.7-0 版本和 1.9.6 版本都有这样的问题

HTML Configuration

MiniValine Configuration

Other Information

@RainoutOvO
Copy link

同问,有解决方案吗?

@Gainlos
Copy link

Gainlos commented Aug 28, 2023

@wangqian0306 @Out-Of-Rain 对于这个问题我找到了解决方案,你不仅要在源文件的_config.ayer.yml更改menu,你还需要在theme-hexo的_config.yml中删去你不需要的menu子项,推测是整体的config是取前者和后者的并集,冲突处以前者为准,希望能帮助到你们

@wangqian0306
Copy link
Author

好的,非常感谢。@Gainlos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants