Skip to content

Commit b7d4838

Browse files
committed
Add new section for AI projects
1 parent 38c48ef commit b7d4838

File tree

19 files changed

+142
-32
lines changed

19 files changed

+142
-32
lines changed

Justfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ start:
1515
tidy:
1616
pnpm format
1717
pnpm lint
18+
19+
run:
20+
go run server/main.go
21+

contentlayer.config.ts

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import {
44
makeSource,
55
} from 'contentlayer2/source-files';
66

7-
export const Personal = defineDocumentType(() => ({
8-
name: 'Personal',
9-
filePathPattern: 'personal.md',
7+
export const PersonalInfo = defineDocumentType(() => ({
8+
name: 'PersonalInfo',
9+
filePathPattern: 'personal-info.md',
1010
isSingleton: true,
1111
fields: {
1212
givenName: {
@@ -107,6 +107,21 @@ export const Achievement = defineDocumentType(() => ({
107107
},
108108
}));
109109

110+
111+
export const PersonalProjects = defineDocumentType(() => ({
112+
name: 'PersonalProjects',
113+
filePathPattern: 'personal-projects/*.md',
114+
isSingleton: false,
115+
fields: {
116+
title: {
117+
type: 'string',
118+
description: 'The name of the personal projects section',
119+
required: false,
120+
},
121+
},
122+
}));
123+
124+
110125
export const AdditionalInfo = defineDocumentType(() => ({
111126
name: 'AdditionalInfo',
112127
filePathPattern: 'additional-items/*.md',
@@ -135,8 +150,9 @@ export const PrivateField = defineDocumentType(() => ({
135150
export default makeSource({
136151
contentDirPath: 'edit-me/content',
137152
documentTypes: [
138-
Personal,
153+
PersonalInfo,
139154
ProfessionalExperience,
155+
PersonalProjects,
140156
Achievement,
141157
AdditionalInfo,
142158
PrivateField,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as React from 'react';
22
import type { IconType } from '@icons-pack/react-simple-icons';
33

4+
// eslint-disable-next-line react/display-name
45
const LinkedInIcon = React.forwardRef<SVGSVGElement, React.SVGProps<SVGSVGElement>>((props, ref) => (
56
<svg
67
role="img"

edit-me/config/links.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
SiGithub,
44
} from '@icons-pack/react-simple-icons';
55
import { CMSLink } from 'edit-me/types/cms-link';
6-
import LinkedInIcon from './LinkedInIcon';
6+
import LinkedInIcon from './linkedin-icon';
77

88
// https://simpleicons.org/
99
export const links: CMSLink[] = [
File renamed without changes.
File renamed without changes.
File renamed without changes.

edit-me/content/additional-items/03-awesome.md renamed to edit-me/content/personal-projects/03-awesome.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Awesome AI Tools
33
---
44

5-
🤖 [https://github.com/openaide/awesome](https://github.com/openaide/awesome)
5+
🤖 [https://github.com/qiangli/awesome](https://github.com/qiangli/awesome)
66

77
This is a collection of open-source AI tools that anyone can run
88
and customize on a local machine, aimed at enhancing productivity

src/app/opengraph-image.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { resumeConfig } from '@config/resume-config';
2-
import { personal } from '@content';
2+
import { personalInfo } from '@content';
33
import { ImageResponse } from 'next/og';
44
import { readFile } from 'node:fs/promises';
55
import path from 'node:path';
@@ -52,7 +52,7 @@ export default async function og(): Promise<ImageResponse> {
5252
}}
5353
tw="mt-4 text-6xl"
5454
>
55-
{personal.title}
55+
{personalInfo.title}
5656
</div>
5757
</div>
5858
<div

src/app/page.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import AboutMe from 'src/components/articles/about-me';
33
import Achievements from 'src/components/articles/achievements';
44
import AdditionalInfo from 'src/components/articles/additional-info';
55
import ContactInformation from 'src/components/articles/contact-info';
6-
import Professional from 'src/components/articles/professional';
6+
import ProfessionalExperiences from 'src/components/articles/professional-experiences';
7+
import PersonalProjects from 'src/components/articles/personal-projects';
78

89
export const dynamic = 'force-static';
910

@@ -14,8 +15,8 @@ export default function Page(): ReactNode {
1415
<AboutMe />
1516
<ContactInformation />
1617
</div>
17-
18-
<Professional />
18+
<ProfessionalExperiences />
19+
<PersonalProjects />
1920
<Achievements />
2021
<AdditionalInfo />
2122
</div>

0 commit comments

Comments
 (0)