diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx index e4914431..3e72ce81 100644 --- a/apps/web/src/app/layout.tsx +++ b/apps/web/src/app/layout.tsx @@ -4,15 +4,18 @@ import { GoogleAnalytics } from "@/components/google/ga"; import Hello from "@/components/hello"; import NavBar from "@/components/nav-bar"; import SideBar from "@/components/side-bar"; +import config from "@/config"; + +const { title } = config; +const { description } = config; import "./globals.css"; const googleAnalyticId = "G-JGG75799PJ"; export const metadata: Metadata = { - title: "Hugo ChunHo Lin (1chooo) | Open Source Enthusiast", - description: - "I'm Hugo ChunHo Lin, a graduate with a Bachelor's degree from National Central University (NCU) 🐿️, driven by a sincere passion for Software Engineering 💻.", + title: title, + description: description, authors: [{ name: "Hugo ChunHo Lin (1chooo)" }], keywords: ["Hugo ChunHo Lin", "1chooo", "Software Engineering", "Next.js", "React"], openGraph: { @@ -21,7 +24,7 @@ export const metadata: Metadata = { siteName: "Hugo ChunHo Lin (1chooo) | Open Source Enthusiast", title: "Hugo ChunHo Lin (1chooo) | Open Source Enthusiast", description: - "I'm Hugo ChunHo Lin, a graduate with a Bachelor's degree from National Central University (NCU) 🐿️, driven by a sincere passion for Software Engineering 💻.", + "I'm Chun-Ho (Hugo) Lin, a graduate with a Bachelor's degree from National Central University (NCU) 🐿️, driven by a sincere passion for Software Engineering 💻.", images: [ { url: "https://docs.1chooo.com/images/cover-with-1chooo-com.png", @@ -35,7 +38,7 @@ export const metadata: Metadata = { card: "summary_large_image", title: "Hugo ChunHo Lin (1chooo) | Open Source Enthusiast", description: - "I'm Hugo ChunHo Lin, a graduate with a Bachelor's degree from National Central University (NCU) 🐿️, driven by a sincere passion for Software Engineering 💻.", + "I'm Chun-Ho (Hugo) Lin, a graduate with a Bachelor's degree from National Central University (NCU) 🐿️, driven by a sincere passion for Software Engineering 💻.", images: "https://docs.1chooo.com/images/cover-with-1chooo-com.png", }, }; diff --git a/apps/web/src/config/index.ts b/apps/web/src/config/index.ts index a051cb40..957937ee 100644 --- a/apps/web/src/config/index.ts +++ b/apps/web/src/config/index.ts @@ -9,6 +9,7 @@ import { PiBooks } from "react-icons/pi"; const config: Config = { avatar: '/images/profile.jpg', title: "Chun-Ho (Hugo) Lin - 1chooo | Open Source Enthusiast", + description: "I'm Chun-Ho (Hugo) Lin, a graduate with a Bachelor's degree from National Central University (NCU) 🐿️, driven by a sincere passion for Software Engineering 💻.", status: "Day ONE ⚡️", navItems: [ { path: '/', label: 'About' }, diff --git a/apps/web/src/types/config.d.ts b/apps/web/src/types/config.d.ts index 8b30a6cd..eecfbe1e 100644 --- a/apps/web/src/types/config.d.ts +++ b/apps/web/src/types/config.d.ts @@ -14,6 +14,7 @@ import type { NavItem } from "@/types/nav-bar"; export type Config = { avatar: string; title: string; + description: string; status: string; navItems: NavItem[]; socialMedia: SocialMedia;