Skip to content

Add Taxonomies #4234

Open
Open
@vladyslav2

Description

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

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions