Skip to content

Commit

Permalink
chore: Enhanced SEO
Browse files Browse the repository at this point in the history
  • Loading branch information
markthree committed Apr 7, 2023
1 parent 611610f commit 8aa242a
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,19 @@ export default defineNuxtConfig({
'nuxt-size',
'@unocss/nuxt',
'@nuxt/devtools',
'@nuxtjs/robots',
'@nuxtjs/fontaine',
'@nuxt/image-edge',
'./modules/beastcss'
],
app: {
head: {
meta: [
{ charset: 'utf-8' },
{ name: 'keywords', content: '编程快速入门视频' },
{ name: 'keywords', content: '帮助你快速开始编程的教程' },
{ name: 'description', content: `一个编程快速入门的视频栏目,帮助你快速开始编程` },
],
htmlAttrs: {
lang: 'zh-CN'
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@nuxt/image-edge": "1.0.0-28008586.381b906",
"@nuxt/kit": "^3.3.3",
"@nuxtjs/fontaine": "^0.2.4",
"@nuxtjs/robots": "^3.0.0",
"@types/node": "^18.15.11",
"@unocss/nuxt": "^0.50.6",
"beastcss": "^2.1.3",
Expand Down
13 changes: 13 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions robots.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default [
{ UserAgent: '*' },
{ Disallow: '/' },
{ BlankLine: true },
{ Comment: 'Comment here' },
// @ts-ignore
{ Sitemap: (req) => `https://${req.headers.host}/sitemap.xml` }
]

0 comments on commit 8aa242a

Please sign in to comment.