Skip to content

Commit

Permalink
refactor(web): update config to include author field (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
1chooo committed Oct 4, 2024
1 parent bd8ab0b commit 0d628b2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/web/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import config from "@/config";

const { title } = config;
const { description } = config;
const { author } = config;

import "./globals.css";

Expand All @@ -16,7 +17,7 @@ const googleAnalyticId = "G-JGG75799PJ";
export const metadata: Metadata = {
title: title,
description: description,
authors: [{ name: "Hugo ChunHo Lin (1chooo)" }],
authors: [{ name: author }],
keywords: ["Hugo ChunHo Lin", "1chooo", "Software Engineering", "Next.js", "React"],
openGraph: {
url: "https://1chooo.com/",
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 @@ -10,6 +10,7 @@ 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 💻.",
author: "Chun-Ho (Hugo) Lin - 1chooo",
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 @@ -15,6 +15,7 @@ export type Config = {
avatar: string;
title: string;
description: string;
author: string;
status: string;
navItems: NavItem[];
socialMedia: SocialMedia;
Expand Down

0 comments on commit 0d628b2

Please sign in to comment.