Skip to content

Commit

Permalink
fix(web): seo
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilfish committed Mar 10, 2024
1 parent 2dbe21b commit ac1018a
Show file tree
Hide file tree
Showing 5 changed files with 1,682 additions and 45 deletions.
7 changes: 7 additions & 0 deletions apps/web/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default defineNuxtConfig({
'@pinia/nuxt',
'@nuxtjs/color-mode',
'@bg-dev/nuxt-naiveui',
'@nuxtjs/seo',
'dayjs-nuxt',
],

Expand Down Expand Up @@ -97,6 +98,12 @@ export default defineNuxtConfig({
},
},

site: {
url: 'https://weibo.chilfish.top',
name: 'Weibo Archiver',
defaultLocale: 'zh-cn',
},

typescript: {
tsConfig: {
extends: join(root, 'tsconfig.json'),
Expand Down
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@bg-dev/nuxt-naiveui": "^1.10.2",
"@nuxt/image": "^1.3.0",
"@nuxtjs/color-mode": "^3.3.2",
"@nuxtjs/seo": "2.0.0-rc.8",
"@pinia/nuxt": "^0.5.1",
"@types/jsdom": "^21.1.6",
"@types/node": "^20.11.24",
Expand Down
3 changes: 3 additions & 0 deletions apps/web/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
User-agent: *
Allow: /

4 changes: 4 additions & 0 deletions apps/web/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ useSeoMeta({
twitterTitle: title,
twitterDescription: description,
twitterCreator: 'chilllish',
twitterImage: ogImage,
twitterImageAlt: appName,
twitterSite: '@chilllish',
keywords: '微博,备份,工具,微博备份,微博备份工具,备份微博,存档,油猴脚本,backup',
})
useHead({
Expand Down
Loading

0 comments on commit ac1018a

Please sign in to comment.