Skip to content

Instantly share code, notes, and snippets.

@danielkellyio
Last active July 6, 2019 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielkellyio/3773ecf2e1179259803c0ec65d7c2cad to your computer and use it in GitHub Desktop.
Save danielkellyio/3773ecf2e1179259803c0ec65d7c2cad to your computer and use it in GitHub Desktop.
Array of social sharing meta tags for use in Nuxt.js
{
meta: [
{
hid: 'description',
name: 'description',
content: this.description,
},
{
hid: 'og:description',
property: 'og:description',
content: this.description,
},
{
hid: 'og:title',
property: 'og:title',
content: this.title,
},
{
hid: 'og:image',
property: 'og:image',
content: this.featureImage,
},
{
hid: 'og:url',
property: 'og:url',
content: this.url,
},
{
hid: 'twitter:card',
name: 'twitter:card',
content: `summary_large_image`,
},
{
hid: 'og:site_name',
name: 'og:site_name',
content: this.$store.state.siteName,
},
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment