poli0981 63992b302c Initial content import from poli0981/poli0981-dev
Moves src/content/** out of the site repo so writing and deploying are separate
concerns. Consumed back as a git submodule mounted at src/content/, which keeps
the whole existing pipeline intact: Astro's content collections, the image()
schema helper, the MDX component alias, Pagefind indexing and OG generation all
resolve exactly as before because the files sit at the same physical path.

27 entries: blog 3, stories 2, projects 2, faq 3, gallery 12, legal 6.

CONTENT-LICENSE.md travels with the content on purpose — this repo is public and
All Rights Reserved, which is a different license from the site repo's GPL-3.0.
2026-08-10 01:22:41 +07:00

poli0981/content

Content for poli0981.dev — blog posts, stories, project pages, Q&A entries, gallery album metadata, and the legal texts.

This repository is consumed as a git submodule mounted at src/content/ in poli0981/poli0981-dev. The site's Astro content collections read directly from these paths, so the directory names here are load-bearing:

Directory Collection Notes
blog/ blog .md / .mdx, one file per locale (lang: vi | en, paired by translationKey)
stories/ stories <series>/<chapter>.md — the folder name is the series route segment
projects/ projects standalone schema (name, tagline, stack, repo, year…)
faq/ faq q, lang, group (channel / dev / personal), order
gallery/ gallery album metadata only — the images live in the site repo under src/assets/gallery/<album>/
legal/ legal bilingual within one file (## English then ## Tiếng Việt); both locale routes render the same document

Editing

Frontmatter is validated by Zod at build time in the site repo (src/content.config.ts) — a missing or misspelled field fails the build rather than rendering something broken. Notable rules:

  • description max 200 chars, title max 120
  • lang must be vi or en; pair translations with a shared translationKey
  • draft: true hides an entry from production builds but keeps it visible in npm run dev
  • gallery albums need a captions.json in the site repo with both vi and en for every image, or the build fails

blog/lan-dau-viet-truyen.mdx imports @/components/Callout.astro. That alias resolves into the site repo, which works because the submodule is mounted inside its src/. MDX files can only use components that exist there.

Publishing a change

Commit here, then bump the submodule pointer in the site repo — the site builds from the commit that repo has pinned, so a commit here alone does not deploy anything.

License

Code in the site repo is GPL-3.0-only. The content in this repository is not. See CONTENT-LICENSE.md: © Kokone (SkullMute), all rights reserved, and explicitly not licensed for machine-learning training.

S
Description
No description provided
Readme
78 KiB
0 Stars 1 Watchers 0 Forks
Languages
MDX 100%