Vignette is designed to be straightforward to set up and easy to maintain over time. Everything—from site metadata and typography tokens to personas and localization—lives in a small set of TypeScript configuration files.

Requirements

Before you begin, make sure your environment has:

  • Node.js >= 22.12.0
  • npm (or another Node-compatible package manager)

Installation

Clone the repository and install dependencies:

git clone https://github.com/hyngng-for-deployment/astro-vignette-theme.git
cd astro-vignette-theme
npm install

Start the local development server:

npm run dev

Your site will be available at http://localhost:4321, with changes reflected immediately as you write.

Project Structure

Most day-to-day work happens in two places:

  • src/settings/ — Site metadata, personas, theme colors, and UI strings
  • posts/ — Markdown and MDX articles organized by language or folder

Configuring Your Site

Open src/settings/site.settings.ts to update your site title, description, canonical URL, default locale, and timezone. Optional integrations such as Giscus comments, analytics, and PWA offline caching can also be toggled here.

To customize personas, edit src/settings/personas.settings.ts. Each persona defines an avatar, optional social links, and localized descriptions.

Writing Your First Post

Create a .md or .mdx file anywhere under posts/:

---
title: Hello World
description: A short summary of the post.
personas: [About the theme]
date: 2026-11-28 15:00:00 +0900
lang: en
toc: true
---

When you are ready to verify and build the static output:

npm run check
npm run build

The compiled static site—along with its Pagefind search index, RSS feeds, and llms.txt—will be written to dist/, ready to deploy to GitHub Pages, Cloudflare Pages, Netlify, or any static host.