diff --git a/docs/constants.js b/docs/constants.js index 86f38496312..f4a5ecbaac4 100644 --- a/docs/constants.js +++ b/docs/constants.js @@ -5,3 +5,11 @@ export const NETLIFY_URL = 'https://bootstrap-vue.netlify.app' export const GA_TRACKING_ID = 'UA-89526435-1' export const TWITTER_HANDLE = '@BootstrapVue' + +// --- Google Webmaster tools google-site-verification codes --- +// bootstrap-vue.js.org +// +export const GWT_JS_ORG = 'H9Mn7ie5Z5KJSjRfsn9nilLn5kFgn7BMEqL_sUhVpzg' +// *.bootstrap-vue.org +// +export const GWT_BV_ORG = '5E0vyG9CXTfY7McIt2aQppkNA6FQ3b0JJRZzhQ16HW4' diff --git a/docs/layouts/default.js b/docs/layouts/default.js index d2c4ba45128..5daa35b205f 100644 --- a/docs/layouts/default.js +++ b/docs/layouts/default.js @@ -1,4 +1,4 @@ -import { BASE_URL } from '~/constants' +import { BASE_URL, GWT_BV_ORG, GWT_JS_ORG } from '~/constants' import Footer from '~/components/footer' import Header from '~/components/header' @@ -8,15 +8,29 @@ export default { return h('div', [h(Header), h('nuxt'), h(Footer)]) }, head() { - // Add canonical URL so all site variations are - // indexed to the same primary URL return { link: [ + // Add canonical URL so all site variations are + // indexed to the same primary URL { hid: 'canonical', rel: 'canonical', href: `${BASE_URL}${this.$route.path}` } + ], + meta: [ + // Add GWT site verification for *.bootstrap-vue.org + { + hid: 'google-site-verification-bv-org', + name: 'google-site-verification', + content: GWT_BV_ORG + }, + // Add GWT site verification for bootstrap-vue.js.org + { + hid: 'google-site-verification-js-org', + name: 'google-site-verification', + content: GWT_JS_ORG + } ] } } diff --git a/docs/layouts/docs.js b/docs/layouts/docs.js index 93e8aa4e0c7..8c93b9df57f 100644 --- a/docs/layouts/docs.js +++ b/docs/layouts/docs.js @@ -1,4 +1,4 @@ -import { BASE_URL } from '~/constants' +import { BASE_URL, GWT_BV_ORG, GWT_JS_ORG } from '~/constants' import BVBreadcrumbs from '~/components/breadcrumbs' import BVFeedback from '~/components/feedback' import BVFooter from '~/components/footer' @@ -76,15 +76,29 @@ export default { return h('div', [$header, $container, $footer]) }, head() { - // Add canonical URL so all site variations are - // indexed to the same primary URL return { link: [ + // Add canonical URL so all site variations are + // indexed to the same primary URL { hid: 'canonical', rel: 'canonical', href: `${BASE_URL}${this.$route.path}` } + ], + meta: [ + // Add GWT site verification for *.bootstrap-vue.org + { + hid: 'google-site-verification-bv-org', + name: 'google-site-verification', + content: GWT_BV_ORG + }, + // Add GWT site verification for bootstrap-vue.js.org + { + hid: 'google-site-verification-js-org', + name: 'google-site-verification', + content: GWT_JS_ORG + } ] } }