Skip to content

Commit

Permalink
refactor(web): integrate description in config (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
1chooo committed Oct 4, 2024
1 parent a8e8504 commit bd8ab0b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
13 changes: 8 additions & 5 deletions apps/web/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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",
Expand All @@ -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",
},
};
Expand Down
1 change: 1 addition & 0 deletions apps/web/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand Down
1 change: 1 addition & 0 deletions apps/web/src/types/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bd8ab0b

Please sign in to comment.