Personal blog built with Nuxt 4 and Nuxt Content.
- Nuxt 4
- Vue 3
@nuxt/contentfor Markdown content- Shiki for code highlighting
- KaTeX for math rendering
- pnpm for package management
- Node.js 20+
- pnpm
- Python 3.11+ (optional, for embedding/depth scripts)
pnpm install
pnpm devOpen http://localhost:3000.
pnpm dev: start the dev serverpnpm build: production buildpnpm preview: preview the production buildpnpm generate: generate static outputpnpm new:article "Your Title": create a draft article incontent/draftpnpm buildgraph: run the article embedding graph pipeline (requires.venv)pnpm assets:genmaps: generate depth maps forpublic/assets/*-albedo.*
- Drafts:
content/draft - Published articles:
content/article - Nuxt Content collection:
articles(configured incontent.config.ts)
The Nuxt build hook tries to run buildgraph.py using .venv/bin/python. If .venv is missing, it is skipped.
Set up locally:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python buildgraph.py- SSR build output:
.output/ - Static site output (from
pnpm generate):.output/public/
app/: pages, layouts, components, assetscontent/: Markdown contentscripts/: project scripts (new:article, depth map generation)embed/: embedding pipeline utilitiespublic/: static assets
All rights reserved unless otherwise stated.