🔍 添加 Robots.txt 优化Seo

This commit is contained in:
7836246 2024-03-03 07:23:53 +08:00
parent 0ea2d2a3df
commit 2fbaf88ce2
5 changed files with 1025 additions and 555 deletions

View File

@ -8,6 +8,7 @@ export default defineNuxtConfig({
'nuxt-headlessui',
'@pinia/nuxt', // needed
'@pinia-plugin-persistedstate/nuxt',
'nuxt-simple-robots',
],
features:{
inlineStyles: true,

View File

@ -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

File diff suppressed because it is too large Load Diff

2
public/_robots.txt Normal file
View File

@ -0,0 +1,2 @@
User-agent: *
Disallow:

View File

@ -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,
},
}