To publish a new article:
- Copy
data/posts/_template.json. - Rename it to a new slug, for example:
my-new-article.json. - Fill the fields (
id,title,description,tags,lang,content). - Leave
publishedAtempty to use the file first-commit date/time automatically, or set it manually in ISO format (2026-02-16T18:30:00Z). - Commit and push.
GitHub Actions runs scripts/build-posts-index.js, regenerates data/posts.json,
and sorts posts from newest to oldest by publishedAt.
Notes:
idmust be unique.tagsmust be a non-empty array of strings.- Use double line breaks in
contentto split paragraphs in the post page.