You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Switch from Cactus to PaperMod theme with Hugo Modules
- Replace Cactus git submodule with PaperMod via Hugo Modules
- Modernize GitHub Actions workflow to use native Pages deployment
- Convert projects list from data/projects.json to content/projects.md
- Update hugo.toml with PaperMod params (dark theme, social icons, etc.)
- Add AGENTS.md and CLAUDE.md for project guidance
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4
+
5
+
## Project Overview
6
+
7
+
Personal blog/website at [guangda.me](https://guangda.me), built with Hugo using the PaperMod theme (dark mode). Deployed to GitHub Pages via GitHub Actions.
8
+
9
+
## Commands
10
+
11
+
-**Setup** (first time after clone): `hugo mod get`
12
+
-**Dev server**: `hugo server -D` (includes drafts)
13
+
-**Build**: `hugo --minify`
14
+
-**New post**: `hugo new posts/<slug>.md`
15
+
16
+
## Architecture
17
+
18
+
-**Hugo version**: 0.155.2 (extended), pinned in `.github/workflows/gh-pages.yml`
19
+
-**Theme**: PaperMod, installed via Hugo Modules (no git submodule)
20
+
-**Content**: Markdown files in `content/` using `+++` TOML front matter (not `---` YAML)
21
+
-**Projects list**: `content/projects.md` — a standalone markdown page listing projects
22
+
-**Static assets**: `static/images/` for images, `static/CNAME` for custom domain
23
+
-**Deployment**: Pushing to `main` triggers a GitHub Actions workflow that builds with Hugo and deploys directly to GitHub Pages (no `gh-pages` branch). Source: `actions/configure-pages` + `actions/deploy-pages`.
24
+
25
+
## Content Conventions
26
+
27
+
- Posts use TOML front matter with `title`, `author`, `date`, `lastmod`, `categories`, `draft` fields
28
+
- The `about.md` page lives at `content/about.md` (not in posts)
29
+
- Date format: `2006-01-02` (Go reference time)
30
+
- Code highlighting: Dracula style with line numbers
0 commit comments