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

同时支持 博客 和 文档 #370

Closed
KimYangOfCat opened this issue Aug 9, 2021 · 2 comments
Closed

同时支持 博客 和 文档 #370

KimYangOfCat opened this issue Aug 9, 2021 · 2 comments

Comments

@KimYangOfCat
Copy link

Feature request

在目前博客主题下,博客分类和标签 都是根据 文档根目录 下的所有文件和文件夹自动生成的,但是当你想写一个单独写一个系列文档时,按官方默认主题配置后,这一系列文档也会被 博客分类和标签监测到,这就导致了内容重复问题。所以我想能不能单独指定文件夹供博客主题生成博客分类和标签,而不是直接用根目录。

What problem does this feature solve?

内容重复

How should this be implemented in your opinion?

themeConfig.blogConfig 对象中新加入一个变量 base 来指定 博客分类和标签 的监测目录。

Are you willing to work on this yourself?

尚未研究源码,可行性不知,希望能得到关于可行性的反馈,再决定是否帮助实现。

@KimYangOfCat KimYangOfCat changed the title 同时支持 博客 和文档 同时支持 博客 和 文档 Aug 9, 2021
@KimYangOfCat
Copy link
Author

在查看 vuepress-theme-reco-next 的相关讨论时,我又想到第二种解决思路,就是,markdown 文件未添加相关配置:

---
tags: 
categories: 
---

这时,博客分类和标签 便不收录该文章,这样似乎也能解决前面说到的重复问题

@recoluan
Copy link
Member

根据咱的建议,2.0 后面将推出如下功能:vuepress-reco/vuepress-theme-reco#17 (comment)

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

2 participants