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

Add Taxonomies #4234

Open
4 tasks done
vladyslav2 opened this issue Sep 26, 2024 · 0 comments
Open
4 tasks done

Add Taxonomies #4234

vladyslav2 opened this issue Sep 26, 2024 · 0 comments

Comments

@vladyslav2
Copy link

Is your feature request related to a problem? Please describe.

First of all, I would like to say thank you to all authors and contributers of the vitepress.

We are trying to migrate from hugo to vitepress and while vitepress has its benefits I do believe its lacking from one crutial functionality: Taxonomies Meaning, use label pages and create custom relations between them using front matter. Which allows simple yet powerfull way to work with complex websites.

Describe the solution you'd like

I'll use example from hugo documentation:

movie website

Let’s assume you are making a website about movies. You may want to include the following taxonomies:

  • Actors
  • Directors
  • Studios
  • Genre
  • Year
  • Awards

Then, in each of the movies, you would specify terms for each of these taxonomies of each of your movie content files). From these terms, platform would automatically create pages for each Actor, Director, Studio, Genre, Year, and Award, with each listing all of the Movies that matched that specific Actor, Director, Studio, Genre, Year, and Award.

Movie taxonomy organization

To continue with the example of a movie site, the following demonstrates content relationships from the perspective of the taxonomy:

Actor                    <- Taxonomy
    Bruce Willis         <- Term
        The Sixth Sense  <- Value
        Unbreakable      <- Value
        Moonrise Kingdom <- Value
    Samuel L. Jackson    <- Term
        Unbreakable      <- Value
        The Avengers     <- Value
        xXx              <- Value

From the perspective of the content, the relationships would appear differently, although the data and labels used are the same:

Unbreakable                 <- Value
    Actors                  <- Taxonomy
        Bruce Willis        <- Term
        Samuel L. Jackson   <- Term
    Director                <- Taxonomy
        M. Night Shyamalan  <- Term
    ...
Moonrise Kingdom            <- Value
    Actors                  <- Taxonomy
        Bruce Willis        <- Term
        Bill Murray         <- Term
    Director                <- Taxonomy
        Wes Anderson        <- Term
    ...

This will be very helpfull for any platform which has categories/subcateries content (I guess almost any platform)

Describe alternatives you've considered

Since we are in migration process, I might be bias toward hugo realization but I'm sure this will be step in a right direction

Additional context

No response

Validations

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

1 participant