Skip to content

Duplicate description meta at runtime. #665

Closed
@jordonbaade

Description

@jordonbaade

Bug report

Version

VuePress 0.12.0

Steps to reproduce

  1. Install VuePress
  2. Create a page and add extra meta data as per:

https://vuepress.vuejs.org/guide/markdown.html#front-matter

---
meta:
  - name: description
    content: hello
  - name: keywords
    content: super duper SEO
---
  1. Run vuepress dev or vuepress build
  2. Check the page's meta tags

Was able to reproduce in fresh repo:

https://github.com/jordonbaade/vuepress-0.12.0-meta-description-bug

What is expected?

A single:

<meta name="description" content="description here">

What is actually happening?

Two description meta elements:

image

Other relevant information

If you check the build files directly the meta description element is only output once; seems the extra is injected on page view, and not just when using dynamic navigation.

  • Your OS: macOS High Sierra v10.13.6
  • Node.js version: v9.1.0
  • Browser version: v67.0.3396.99
  • Is this a global or local install? Global
  • Which package manager did you use for the install? Yarn

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions