Axi Theme: Quick Start & Configuration
Start locally, understand content structure, and configure your site via a single entry file.
views
| comments
1. Prerequisites#
- Node.js 18+ (recommended 20+)
- Package manager:
pnpm
pnpm install
pnpm devbash2. Key Paths#
src/site.config.ts: the main configuration entry (site info, nav, integrations)src/content/blogs/<slug>/index.mdx: Chinese postsrc/content/blogs/<slug>/index-en.mdx: English post (optional; if missing, English listing falls back to Chinese)public/: static assets (/images/*,/avatar/*, etc.)
3. Configure Your Site (src/site.config.ts)#
Common edits:
theme.title/theme.descriptiontheme.personal.domains.main(used for absolute URLs, RSS, etc.)theme.header.menuinteg.pagefind(search via Pagefind)integ.waline(comments; see Waline doc)
4. Create a Post (Bilingual)#
- Create a folder:
src/content/blogs/my-first-post/ - Write Chinese:
src/content/blogs/my-first-post/index.mdx - Write English:
src/content/blogs/my-first-post/index-en.mdx(optional)
Minimal frontmatter:
---
title: My Title
publishDate: 2026-01-11
description: Short summary.
tags: ['docs']
---md5. Build Output#
pnpm build
pnpm previewbash- Output is generated into
dist/ astro.config.mjspicks adapter/output based onDEPLOYMENT_PLATFORM(see deployment doc)
6. Recommended Deployment (GitHub + Vercel)#
GitHub for source control + Vercel for CI/CD is the easiest path (previews, rollback, CDN, HTTPS).
- Reference guide: Website on Vercel ↗