🌐 AI搜索 & 代理 主页
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
// <meta name="google-site-verification" content="H9Mn7ie5Z5KJSjRfsn9nilLn5kFgn7BMEqL_sUhVpzg" />
export const GWT_JS_ORG = 'H9Mn7ie5Z5KJSjRfsn9nilLn5kFgn7BMEqL_sUhVpzg'
// *.bootstrap-vue.org
// <meta name="google-site-verification" content="5E0vyG9CXTfY7McIt2aQppkNA6FQ3b0JJRZzhQ16HW4" />
export const GWT_BV_ORG = '5E0vyG9CXTfY7McIt2aQppkNA6FQ3b0JJRZzhQ16HW4'
20 changes: 17 additions & 3 deletions docs/layouts/default.js
Original file line number Diff line number Diff line change
@@ -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'

Expand All @@ -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
}
]
}
}
Expand Down
20 changes: 17 additions & 3 deletions docs/layouts/docs.js
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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
}
]
}
}
Expand Down