vuepress-reco / vuepress-theme-reco-1.x

🎨 This is the repo for vuepress-theme-reco 1.

Home Page:http://v1.vuepress-reco.recoluan.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

同时支持 博客 和 文档

KimYangOfCat opened this issue · comments

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?

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

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

---
tags: 
categories: 
---

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

commented

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