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:
javayhu 2025-03-15 01:03:30 +08:00
parent 2ba2eebbaa
commit 234cc5518c
4 changed files with 1 additions and 11 deletions

View File

@ -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": {

View File

@ -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 模板",

View File

@ -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'),
};
}

View File

@ -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;
};
/**