feat(seo): improve SEO configuration and enable SSR

- Enable `ssr: true` in `nuxt.config.ts` for server-side rendering of meta tags.
- Implement `useSeoMeta` in `events/.vue` with fallback logic for Open Graph and Twitter cards.
- Update `content.config.ts` to use `asSeoCollection` for the news collection.
- Migrate event markdown frontmatter to use standardized SEO fields.
This commit is contained in:
xiaomai
2025-11-27 23:07:24 +08:00
parent 6288a1b01b
commit 9bca019b50
4 changed files with 102 additions and 67 deletions

View File

@@ -5,14 +5,15 @@ export default defineNuxtConfig({
compatibilityDate: "2025-07-15",
devtools: { enabled: true },
modules: [
"@nuxtjs/seo",
"@nuxt/ui",
"@nuxtjs/seo",
"@nuxt/content",
"@nuxt/image",
"reka-ui/nuxt",
"@nuxtjs/robots",
"@nuxtjs/sitemap",
],
ssr: true,
css: ["~/assets/css/main.css"],
vite: {
plugins: [tailwindcss()],