Skip to content

jaxx2104/blog

Repository files navigation

jaxx2104.info Blog

A personal blog built with Next.js 15, TypeScript, and styled-components.

Features

  • Static site generation with Next.js 15
  • TypeScript for type safety
  • styled-components for CSS-in-JS
  • MDX support for blog posts
  • Responsive design
  • Dark mode support

Tech Stack

  • Framework: Next.js 15 (App Router)
  • Language: TypeScript
  • Styling: styled-components
  • Package Manager: pnpm
  • Font: Noto Sans JP

Development

Install dependencies

pnpm install

Start development server

pnpm dev

Build for production

pnpm build

Start production server

pnpm start

Deploy (static export)

pnpm deploy

Scripts

  • pnpm dev - Start development server
  • pnpm build - Build for production
  • pnpm start - Start production server
  • pnpm export - Export as static site
  • pnpm deploy - Build and export for deployment
  • pnpm lint - Run ESLint
  • pnpm lint:text - Check Japanese text in blog posts
  • pnpm lint:textfix - Auto-fix Japanese text issues
  • pnpm format - Format code with Prettier
  • pnpm test - Run TypeScript type checking

Project Structure

.
├── app/                  # Next.js App Router pages
│   ├── layout.tsx       # Root layout
│   ├── page.tsx         # Homepage
│   ├── [...slug]/       # Blog post pages
│   └── profile/         # Profile page
├── components/          # React components
├── content/            # Blog posts (Markdown)
│   └── posts/
├── lib/                # Utility functions
├── public/             # Static assets
└── styles/             # Global styles

Writing Blog Posts

Blog posts are stored in /content/posts/ as Markdown files with frontmatter.

Post Structure

content/posts/
└── my-post-slug/
    ├── index.md    # Post content
    └── image.png   # Post images

Frontmatter Example

---
title: "Post Title"
created_at: "2024-01-01"
updated_at: "2024-01-01"
path: "/my-post-slug"
category: "tech"
tags: ["nextjs", "typescript"]
---

License

MIT

About

I love coke and bugs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6