Skip to content

Commit

Permalink
refactor(web): update config to include keywords field (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
1chooo committed Oct 4, 2024
1 parent 0d628b2 commit 4e8d240
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 @@ -9,6 +9,7 @@ import config from "@/config";
const { title } = config;
const { description } = config;
const { author } = config;
const { keywords } = config;

import "./globals.css";

Expand All @@ -18,7 +19,7 @@ export const metadata: Metadata = {
title: title,
description: description,
authors: [{ name: author }],
keywords: ["Hugo ChunHo Lin", "1chooo", "Software Engineering", "Next.js", "React"],
keywords: keywords,
openGraph: {
url: "https://1chooo.com/",
type: "website",
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 @@ -11,6 +11,7 @@ const config: Config = {
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",
keywords: ["Hugo ChunHo Lin", "1chooo", "Software Engineering", "Next.js", "React"],
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 @@ -16,6 +16,7 @@ export type Config = {
title: string;
description: string;
author: string;
keywords: string[];
status: string;
navItems: NavItem[];
socialMedia: SocialMedia;
Expand Down

0 comments on commit 4e8d240

Please sign in to comment.