Added og tags and SEO for google

This commit is contained in:
nautatva
2019-10-21 11:38:54 +05:30
parent c8f33bebbe
commit 6c9e6aaa3a
2 changed files with 18 additions and 0 deletions

View File

@@ -19,6 +19,19 @@ export default {
Search,
Sidebar,
},
head () {
return {
meta: [
{ hid: 'og:image', property: 'og:image', content: this.prodBaseUrl + 'apple-touch-icon.png' },
{ hid: 'og:url', property: 'og:url', content: this.prodBaseUrl },
],
}
},
created: function () {
this.prodBaseUrl = 'https://webgems.io/'
return ''
},
}
</script>

View File

@@ -12,6 +12,11 @@ export default {
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: pkg.description },
{ hid: 'keywords', name: 'keywords', content: 'css, html, php, server, resources, design, gems, nuxt, javascript, tutorials, development, software'},
{ name: "robots", content: "index, follow" },
{ name: "distribution", content: "global"},
{ property: "og:title", content: "webgems" },
{ name:'theme-color', content: '#ffffff' },
{ name: 'msapplication-TileColor', content: '#da532c' },
{ rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '#5bbad5' },