Skip to content

Override/deduplicate meta heads in transformHead() #2695

Description

@Jinjiang

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

I'd like to override <meta name="description"> for each page via transformHead()

https://vitepress.dev/reference/site-config#transformhead

How it only adds it. So there are 2 <meta description>s.

Describe the solution you'd like

I'd like to get a chance to remove or override the default <meta description> for a certain page.

Describe alternatives you've considered

Or having an option to disable the default <meta description>.

Additional context

Reproduction link: https://github.com/Jinjiang/reproductions/tree/vitepress-head-dedupe-20230728

Validations

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildRelated to the build system

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions