🔍 添加 Robots.txt 优化Seo
This commit is contained in:
parent
0ea2d2a3df
commit
2fbaf88ce2
@ -8,6 +8,7 @@ export default defineNuxtConfig({
|
||||
'nuxt-headlessui',
|
||||
'@pinia/nuxt', // needed
|
||||
'@pinia-plugin-persistedstate/nuxt',
|
||||
'nuxt-simple-robots',
|
||||
],
|
||||
features:{
|
||||
inlineStyles: true,
|
||||
|
@ -22,6 +22,7 @@
|
||||
"@nuxtjs/i18n": "^8.1.1",
|
||||
"@pinia-plugin-persistedstate/nuxt": "^1.2.0",
|
||||
"nuxt-headlessui": "^1.1.5",
|
||||
"nuxt-simple-robots": "4.0.0-rc.14",
|
||||
"typescript": "5.3.3"
|
||||
}
|
||||
}
|
||||
|
1544
pnpm-lock.yaml
generated
1544
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
2
public/_robots.txt
Normal file
2
public/_robots.txt
Normal file
@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Disallow:
|
@ -1,8 +1,30 @@
|
||||
import type { Config } from 'tailwindcss'
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
export default {
|
||||
content: [
|
||||
"./index.html",
|
||||
"./src/**/*.{vue,js,ts,jsx,tsx}",
|
||||
],
|
||||
theme: {
|
||||
screens: {
|
||||
'sm': '640px',
|
||||
// => @media (min-width: 640px) { ... }
|
||||
|
||||
// Default are on https://tailwindcss.nuxtjs.org/tailwind/config#default-configuration
|
||||
export default <Partial<Config>>{
|
||||
theme: {},
|
||||
'md': '768px',
|
||||
// => @media (min-width: 768px) { ... }
|
||||
|
||||
'lg': '1024px',
|
||||
// => @media (min-width: 1024px) { ... }
|
||||
|
||||
'xl': '1280px',
|
||||
// => @media (min-width: 1280px) { ... }
|
||||
|
||||
'2xl': '1536px',
|
||||
// => @media (min-width: 1536px) { ... }
|
||||
},
|
||||
extend: {},
|
||||
},
|
||||
plugins: [],
|
||||
content: []
|
||||
corePlugins: {
|
||||
preflight: true,
|
||||
},
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user