feat(i18n): 添加应用名称和描述的国际化支持
添加中英文的应用名称和描述配置 优化全局和首页的SEO meta设置 配置响应式的标题模板和国际化meta信息
This commit is contained in:
@@ -28,6 +28,16 @@ useHead({
|
||||
},
|
||||
})
|
||||
|
||||
// 首页的 SEO 和 Meta 优化,支持国际化响应式
|
||||
useSeoMeta({
|
||||
title: () => t('home.title'),
|
||||
description: () => t('home.welcome'),
|
||||
ogTitle: () => `${t('home.title')} - ${t('app.name')}`,
|
||||
ogDescription: () => t('home.welcome'),
|
||||
twitterTitle: () => `${t('home.title')} - ${t('app.name')}`,
|
||||
twitterDescription: () => t('home.welcome'),
|
||||
})
|
||||
|
||||
// 背景图是装饰层,左右两列共用同一套模板,只通过 side 区分位置和速度。
|
||||
const heroGalleryColumns = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user