Files
陈春 c9cf644ac5 chore: 添加构建推送脚本并更新项目配置
- 添加 build-and-push.sh 脚本用于自动化构建和推送 Docker 镜像
- 更新 .dockerignore 排除 pnpm-workspace.yaml
- 更新项目依赖和配置文件
2026-06-03 17:19:14 +08:00

36 lines
841 B
Vue
Executable File

<script setup lang="ts">
import { useHead, useSeoMeta } from '#imports'
import { useI18n } from 'vue-i18n'
const { t } = useI18n()
// 站点通用基础信息
const siteImage = '/og-image.png'
// 配置全局 Title 模板
useHead({
titleTemplate: (titleChunk?: string) => {
const siteName = t('app.name')
return titleChunk ? `${titleChunk} - ${siteName}` : siteName
}
})
// 配置全局基础 SEO 和 Meta (响应式支持国际化)
useSeoMeta({
description: () => t('app.description'),
ogTitle: () => t('app.name'),
ogDescription: () => t('app.description'),
ogImage: siteImage,
twitterCard: 'summary_large_image',
twitterTitle: () => t('app.name'),
twitterDescription: () => t('app.description'),
twitterImage: siteImage,
})
</script>
<template>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>