My personal blog.
Using Next.js v14 App Router and React Server Components. Styling with TailwindCSS.
Using @discublog/api to query GitHub repository discussions and rendering Markdown with @mdx-js/mdx.
- Modify file
blog-config.ts
in root folder. - Make sure you have the GitHub Profile repository like
zhangyu1818/zhangyu1818
. - Modify site metadata.
- Modify Google verification here.
- Modify the resume page.
- Put your avatar file in
src/images/avatar.webp
. - Put your favicon file in
src/app/favicon.ico
. - Put your icons in
public/icon
.
create .env
file in root folder.
GITHUB_TOKEN=<required>
OPENAI_API_KEY=<optional>
If you need Open AI to generate your article summaries, delete summary.json
in root folder and paste your OPENAI_API_KEY
in .env
.