chore: simplify website info by removing title and description fields
- Remove `title` and `description` fields from English and Chinese translation files to streamline website metadata. - Update `getWebsiteInfo` function to exclude removed fields, ensuring consistency in website information retrieval. - Adjust `WebsiteInfo` type definition to reflect the changes in metadata structure.
This commit is contained in:
parent
2ba2eebbaa
commit
234cc5518c
@ -1,8 +1,6 @@
|
||||
{
|
||||
"Site": {
|
||||
"name": "MkSaaS",
|
||||
"title": "MkSaaS - The Best AI SaaS Boilerplate",
|
||||
"description": "MkSaaS is the best AI SaaS boilerplate. Make AI SaaS in hours, simply and effortlessly",
|
||||
"tagline": "Make AI SaaS in hours, simply and effortlessly"
|
||||
},
|
||||
"Metadata": {
|
||||
|
@ -1,9 +1,7 @@
|
||||
{
|
||||
"Site": {
|
||||
"name": "MkSaaS",
|
||||
"title": "MkSaaS - 最好的 AI SaaS 模板",
|
||||
"tagline": "使用 MkSaaS 在几小时内轻松构建您的 AI SaaS",
|
||||
"description": "MkSaaS 是构建 AI SaaS 的最佳模板,使用 MkSaaS 可以在几小时内轻松构建您的 AI SaaS,简单且毫不费力。"
|
||||
},
|
||||
"Metadata": {
|
||||
"title": "MkSaaS - 最好的 AI SaaS 模板",
|
||||
|
@ -65,9 +65,7 @@ export const websiteConfig: WebsiteConfig = {
|
||||
export function getWebsiteInfo(t: TranslationFunction): WebsiteInfo {
|
||||
return {
|
||||
name: t('Site.name'),
|
||||
title: t('Site.title'),
|
||||
tagline: t('Site.tagline'),
|
||||
description: t('Site.description'),
|
||||
};
|
||||
}
|
||||
|
||||
|
6
src/types/index.d.ts
vendored
6
src/types/index.d.ts
vendored
@ -25,16 +25,12 @@ export type WebsiteConfig = {
|
||||
/**
|
||||
* website info, with translations
|
||||
*
|
||||
* name: the name of the website
|
||||
* title: the title of the website, used in metadata
|
||||
* name: the name of the website, used in navbar and footer
|
||||
* tagline: the tagline of the website, used in footer
|
||||
* description: the description of the website, used in metadata
|
||||
*/
|
||||
export type WebsiteInfo = {
|
||||
name: string;
|
||||
title: string;
|
||||
tagline: string;
|
||||
description: string;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user