-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Duplicate description meta at runtime. #665
Comments
Sorry but I cannot reproduce it, here is my repo: https://github.com/ulivz/vuepress-665 See output files: |
ulivz
changed the title
Bug: Meta description appears twice when using extra meta tags method
Duplicate description meta at runtime.
Jul 27, 2018
@ulivz while fixed for the // 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Version
VuePress 0.12.0
Steps to reproduce
https://vuepress.vuejs.org/guide/markdown.html#front-matter
vuepress dev
orvuepress build
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:
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.
The text was updated successfully, but these errors were encountered: