VuePress 0.12.0
https://vuepress.vuejs.org/guide/markdown.html#front-matter
meta:
- name: description
content: hello
- name: keywords
content: super duper SEO
---
vuepress dev or vuepress buildWas able to reproduce in fresh repo:
https://github.com/jordonbaade/vuepress-0.12.0-meta-description-bug
A single:
<meta name="description" content="description here">
Two description meta elements:

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.
I just noticed some closed repos with the same/similar issue (#565 #112 ), but it wasn't clear to me if this was expected behavior after reading everything over. I will leave this up so someone more familiar can look it over and close it if it's expected.
Sorry but I cannot reproduce it, here is my repo: https://github.com/ulivz/vuepress-665
See output files:
For me the output files only contain a single element just like your examples there, so that's not a surprise, the extra is injected on page view (first page load, not just vue-router navigation).

Was able to reproduce with your repo:

Thanks for the clarification, there are truly two different issues.
Fixed it at b207a5f
@ulivz while fixed for the description tag - the issue seems to persist for other meta tags:
// config.js
head: [
['meta', { name: 'twitter:card', content: 'summary_large_image' }],
['meta', { name: 'twitter:site', content: '@TweetsOfSumit' }],
['meta', { name: 'twitter:creator', content: '@TweetsOfSumit' }],
['meta', { property: 'og:type', content: 'article' }],
['meta', { property: 'og:title', content: 'Raum.sh' }],
['meta', { property: 'og:site_name', content: 'Raum.sh' }],
['meta', { property: 'og:url', content: 'https://raum.sh' }],
[
'meta',
{
property: 'og:image',
content: 'https://raumsh-idpjzzfqhw.now.sh/images/speaking.jpg',
},
],
],
---
# Markdown Front Matter
layout: Post
published: 2018-08-07
title: Blog is online ๐โโ๏ธ
meta:
- property: og:title
content: Blog is online ๐โโ๏ธ
- name: description
content: I finally decided to use VuePress as a blog engine.
- name: keywords
content: Web Developer Developer Relations Development Blog
---
(yup, social meta tags are a bit of a chaos but that's a different issue)
Output:
<title>Blog is online ๐โโ๏ธ | Raum.sh</title>
<meta name="description" content="I finally decided to use VuePress as a blog engine.">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@TweetsOfSumit">
<meta name="twitter:creator" content="@TweetsOfSumit">
<meta property="og:type" content="article">
<meta property="og:title" content="Raum.sh">
<meta property="og:site_name" content="Raum.sh">
<meta property="og:url" content="https://raum.sh">
<meta property="og:image" content="https://raumsh-idpjzzfqhw.now.sh/images/speaking.jpg">
<meta name="title" content="Blog is online ๐โโ๏ธ">
<meta property="og:title" content="Blog is online ๐โโ๏ธ">
<meta name="keywords" content="Web Developer Developer Relations Development Blog">
Search for og:title - it's doubled.
Most helpful comment
@ulivz while fixed for the
descriptiontag - the issue seems to persist for other meta tags:(yup, social meta tags are a bit of a chaos but that's a different issue)
Output:
Search for
og:title- it's doubled.Demo:
https://raumsh-vsumtazmko.now.sh/blog/BlogLaunch.html