mirror of
https://github.com/andwati/andwati.com.git
synced 2026-10-18 01:12:53 +00:00
a06a93019fe66fbb38928fbb8c1ba7349d0782f8
andwati.com
Personal site: about, writing, reading and portfolio. Next.js (App Router) with Tailwind CSS v4, exported as static files and served by static-web-server.
Develop
pnpm install
pnpm dev
Content
Everything lives in content/ as markdown with YAML frontmatter:
content/about.mdis the home pagecontent/writing/*.mdare posts (title,description,date,tags)content/reading/*.mdare books and paperscontent/portfolio/*.mdare projects
Covers go in public/covers/<slug>.jpg. Math ($...$), code fences, callouts and YouTube embeds are supported.
Checks
pnpm check # Biome (code) + Prettier and cspell (content)
pnpm format:content # format markdown
A pre-commit hook runs these on staged files. Add project words to .cspell/words.txt.
Analytics
Umami is loaded when both variables are set at build time:
PUBLIC_UMAMI_SCRIPT_URL=https://analytics.andwati.com/script.js
PUBLIC_UMAMI_WEBSITE_ID=...
Deploy
docker build -t andwati-site \
--build-arg PUBLIC_UMAMI_SCRIPT_URL=... \
--build-arg PUBLIC_UMAMI_WEBSITE_ID=... .
The image builds the static export (out/) and serves it with sws.toml (security headers, clean URLs, .well-known). In Dokploy, pass the two Umami variables as build args.
Languages
TypeScript
92.4%
CSS
5.2%
Dockerfile
2.2%
JavaScript
0.2%