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

[Feature Request] Multi-tag filtering in tags page #2136

Open
northword opened this issue Aug 18, 2022 · 6 comments
Open

[Feature Request] Multi-tag filtering in tags page #2136

northword opened this issue Aug 18, 2022 · 6 comments
Assignees
Labels
contribution welcome PR about it is welcomed enhancement New feature or request

Comments

@northword
Copy link

northword commented Aug 18, 2022

Describe the feature

Generally blog posts have multiple tags, and a single tag cannot accurately describe the blog post you want to find.
For example, post 1, 2, and 3 has tags js and ts, its both js and ts involved; post 4, 5 and 6 only has tag js; post 7, 8 and 9 only has tag ts.
When multi-tag filtering is supported, I can select both js and ts to quickly list post 1, 2, 3.

Additional context

No response

@northword northword added the enhancement New feature or request label Aug 18, 2022
@Mister-Hope
Copy link
Member

@northword You should know that VuePress generate html files for links and you are requesting a n^3 feature, with 10 tags the combination are at 1000 level.

@northword
Copy link
Author

@northword You should know that VuePress generate html files for links and you are requesting a n^3 feature, with 10 tags the combination are at 1000 level.

Sorry, please forgive my ignorance, but I noticed that the vdoing theme generates the tags page with only one tags/index.html, each tag is accessed through https://xugaoyi.com/tags/?tag=css and there is no tags/css/index.html in the build files.
In the hope theme, it generates tags/index.html, tags/css/index.html.

Is this one of the differences between vuepress1 and vuepress2?

If it's something like vdoing, it seems to be possible without generating an exponential number of pages (of course, vdoing doesn't support multi-tag filtering at the moment either).

I really don't know much about this, so please correct me if there are any mistakes, thanks.

@Mister-Hope
Copy link
Member

@northword Yes, we can support that, but that will lose ssr.

@northword
Copy link
Author

Yes, we can support that, but that will lose ssr.

I don't know much about server-side rendering, how much work would it be to have an option for the user to decide if they need to sacrifice ssr for multi-tab filtering or choose to keep ssr?
Please decide if you want to implement this feature based on your arrangement, and thanks for your excellent theme!

@Mister-Hope
Copy link
Member

TBH, I am looking forward to this feature, but I may need to plan the interactions and the interface. It could be an extra page.

@northword
Copy link
Author

That's cool! I'm looking forward to this feature too!

Let me describe in detail another example where I want to use multi-tag filtering:

We currently maintain some CSL styles for Chinese journals and thesis, and we use scripts to generate the preview files for each style in the repository and build a website using vuepress and theme-hope.

CSL - Citation Style Language, simply speaking, is an XML-based markup language for describing the format of references. The knowledge management software Zotero and Mendeley both use CSL.

We subsequently want to add tags like "no url", "no doi", "name capitalization", etc. to each style so that people who need them can quickly find the one that fits their needs. Therefore, multi-tag filtering is a great way to improve user experience. Not only for this project, but also for blogs in general, this is a feature that can improve the visitor experience.

The URL of the project mentioned above is https://zotero-cn.github.io/styles, we hope it can provide you with some reference on the requests.

Thanks again for your work!

@Mister-Hope Mister-Hope added the contribution welcome PR about it is welcomed label Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution welcome PR about it is welcomed enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants