From 6c9e6aaa3a3b3d531224b35b34ee578113c6edc4 Mon Sep 17 00:00:00 2001 From: nautatva Date: Mon, 21 Oct 2019 11:38:54 +0530 Subject: [PATCH] Added og tags and SEO for google --- layouts/default.vue | 13 +++++++++++++ nuxt.config.js | 5 +++++ 2 files changed, 18 insertions(+) diff --git a/layouts/default.vue b/layouts/default.vue index e39a6da..6f7123b 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -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 '' + }, } diff --git a/nuxt.config.js b/nuxt.config.js index 6b02e6d..558731d 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -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' },