add config for bot title & sub title

This commit is contained in:
Jihua Peng 2023-04-16 20:31:49 +08:00
parent 1971d300a8
commit af30a8b79e
3 changed files with 10 additions and 8 deletions

View File

@ -25,7 +25,7 @@ import dynamic from "next/dynamic";
import { REPO_URL } from "../constant";
import { ErrorBoundary } from "./error";
import { APP_NAME, APP_SUB_NAME } from "../constant";
import { APP_TITLE, APP_SUB_TITLE } from "../constant";
export function Loading(props: { noLogo?: boolean }) {
return (
@ -170,10 +170,10 @@ function _Home() {
>
<div className={styles["sidebar-header"]}>
<div className={styles["sidebar-title"]}>
{ APP_NAME }
{ APP_TITLE }
</div>
<div className={styles["sidebar-sub-title"]}>
{ APP_SUB_NAME }
{ APP_SUB_TITLE }
</div>
<div className={styles["sidebar-logo"]}>
<ChatGptIcon />

View File

@ -8,5 +8,5 @@ export const FETCH_TAG_URL = `https://api.github.com/repos/${OWNER}/${REPO}/tags
export const RUNTIME_CONFIG_DOM = "danger-runtime-config";
export const APP_NAME = "追求进步";
export const APP_SUB_NAME = "Keeping pace with the AI era.";
export const APP_TITLE = "追求进步";
export const APP_SUB_TITLE = "Keeping pace with the AI era.";

View File

@ -4,13 +4,15 @@ import "./styles/markdown.scss";
import "./styles/highlight.scss";
import { getBuildConfig } from "./config/build";
import { APP_TITLE, APP_SUB_TITLE } from "./constant";
const buildConfig = getBuildConfig();
export const metadata = {
title: "ChatGPT Next Web",
description: "Your personal ChatGPT Chat Bot.",
title: APP_TITLE,
description: APP_SUB_TITLE,
appleWebApp: {
title: "ChatGPT Next Web",
title: APP_TITLE,
statusBarStyle: "default",
},
themeColor: "#fafafa",