Skip to content

Commit 7eee128

Browse files
authored
Merge pull request #6 from TriFullKim/feature/blog-redesign-and-pagination
Redesign blog with pagination, tag system, and modern UI
2 parents e9bb822 + a91f05a commit 7eee128

34 files changed

Lines changed: 2403 additions & 1854 deletions

CLAUDE.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# CLAUDE.md
2+
3+
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4+
5+
## Commands
6+
7+
| Command | Action |
8+
| :------ | :----- |
9+
| `npm install` | Install dependencies |
10+
| `npm run dev` | Start local dev server at `localhost:4321` |
11+
| `npm run build` | Run type check (`astro check`) then build to `./dist/` |
12+
| `npm run preview` | Preview production build locally |
13+
14+
## Architecture
15+
16+
This is an Astro 5 static site with React components, Tailwind CSS, and DaisyUI.
17+
18+
**Stack:**
19+
- Astro 5 with React integration for interactive components
20+
- Tailwind CSS + DaisyUI + shadcn/ui components
21+
- TypeScript
22+
- Pretendard font (Korean) + Source Code Pro (code blocks)
23+
- Shiki syntax highlighting with Dracula theme
24+
25+
**Key Directories:**
26+
- `src/content/blog/` - Markdown blog posts using Astro Content Collections
27+
- `src/components/ui/` - shadcn/ui React components
28+
- `src/data/papers.json` - Publication metadata
29+
- `src/lib/utils.ts` - `cn()` helper for className merging
30+
31+
**Routing:**
32+
- `/post/[slug].astro` - Dynamic blog post pages
33+
- `/tags/[tag].astro` - Tag-filtered post listings
34+
35+
**Content Collections:**
36+
Blog posts support bilingual frontmatter (English/Korean field names):
37+
- `date` or `생성일` for dates
38+
- `tags` or `태그` for tags
39+
40+
**Styling:**
41+
- Dark mode always on (`<html class="dark">`)
42+
- CSS variables with HSL colors defined in `src/styles/globals.css`
43+
- Path aliases: `~/` and `@/` map to `src/`
44+
45+
**Deployment:**
46+
- GitHub Pages via `.github/workflows/astro.yml`
47+
- Site URL: https://www.trifull.kim

astro.config.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,11 @@ import tailwind from "@astrojs/tailwind";
77
// https://astro.build/config
88
export default defineConfig({
99
site: 'https://www.trifull.kim',
10-
integrations: [react(), sitemap(), tailwind()]
10+
integrations: [react(), sitemap(), tailwind()],
11+
markdown: {
12+
shikiConfig: {
13+
theme: 'dracula',
14+
wrap: true,
15+
},
16+
},
1117
});

components.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "default",
4+
"rsc": false,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.mjs",
8+
"css": "src/styles/globals.css",
9+
"baseColor": "slate",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils"
16+
}
17+
}

0 commit comments

Comments
 (0)