Skip to content

Commit ff34ea9

Browse files
Merge pull request #8 from fastapi-startkit/add-google-search-console
Add google search console
2 parents ea48b48 + fca031c commit ff34ea9

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.vitepress/config.mts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ export default defineConfig({
66
description: "A repositories of components that can used inside fastapi or console applications",
77
cleanUrls: true,
88
lastUpdated: true,
9+
sitemap: {
10+
hostname: 'https://fastapi-startkit.github.io'
11+
},
12+
head: [
13+
['meta', { name: 'google-site-verification', content: 'RpM5amadnjbR3TF0J4L4MXB4TWYVesPz0ssaXg7-jYM' }]
14+
],
915

1016
transformHead: ({ pageData }) => {
1117
const title = pageData.frontmatter.title || pageData.title || 'Fastapi Startkit'
@@ -14,7 +20,7 @@ export default defineConfig({
1420
const keywords = pageData.frontmatter.keywords || ''
1521
const datePublished = pageData.frontmatter.date || new Date().toISOString()
1622
const dateModified = pageData.lastUpdated ? new Date(pageData.lastUpdated).toISOString() : datePublished
17-
23+
1824
const head: any[] = [
1925
['link', { rel: 'canonical', href: url }],
2026
['meta', { property: 'og:title', content: title }],
@@ -57,7 +63,7 @@ export default defineConfig({
5763
if (!jsonLd) {
5864
const isBlog = pageData.relativePath.startsWith('blog/') || pageData.frontmatter.layout === 'blog'
5965
const isDoc = pageData.relativePath.startsWith('docs/')
60-
66+
6167
const graph: any[] = [
6268
{
6369
"@type": "WebPage",

0 commit comments

Comments
 (0)