Skip to content

Getting Started

Welcome to the AnhDojo documentation. This guide will help you set up the project, add new content, and customize the theme.

  • Node.js (>=18)
  • pnpm (or npm/yarn)
  • Git
Terminal window
# Clone the repository
git clone https://github.com/ducanhvina17/my-blog-v2.git
cd my-blog-v2
# Install dependencies
pnpm install

Run the development server:

Terminal window
pnpm dev

Visit http://localhost:3000 to see the site. The docs are available at http://localhost:3000/docs.

Create a new markdown file in src/content/blog/ with front‑matter:

---
title: "My New Post"
date: 2025-11-22
excerpt: "A short summary"
tags: ["example", "tutorial"]
---
Your content goes here.

The post will automatically appear on the blog listing page.

Edit src/styles/globals.css to adjust colors, fonts, and spacing. The primary color is defined by --primary and the accent by --accent.

Terminal window
pnpm build

The static files are generated in the dist/ folder. Deploy this folder to your hosting provider.

You can deploy to platforms like Vercel, Netlify, or any static hosting service. Example for Vercel:

Terminal window
vercel

For more detailed guides, see the Guides section in the sidebar.