tanzhijir-04 / blog-1

博客

Home Page:https://zhangyu.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blog

My personal blog.

zhangyu.dev

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.

Fork Guide

  1. Modify file blog-config.ts in root folder.
  2. Make sure you have the GitHub Profile repository like zhangyu1818/zhangyu1818.
  3. Modify site metadata.
  4. Modify Google verification here.
  5. Modify the resume page.
  6. Put your avatar file in src/images/avatar.webp.
  7. Put your favicon file in src/app/favicon.ico.
  8. Put your icons in public/icon.

Env

create .env file in root folder.

GITHUB_TOKEN=<required>
OPENAI_API_KEY=<optional>

Summary

If you need Open AI to generate your article summaries, delete summary.json in root folder and paste your OPENAI_API_KEY in .env.

About

博客

https://zhangyu.dev


Languages

Language:TypeScript 96.2%Language:CSS 2.5%Language:JavaScript 1.3%