Adding a blog post

Adding a blog post

  1. Copy _post-template.html to a descriptive filename such as my-first-post.html in this folder. The underscore keeps the template itself out of the published Jekyll site.
  2. Replace the bracketed title, date, summary, and body in your new file. Set <html lang="en"> to zh-CN if the post is in Chinese.
  3. In blog.html, replace the .blog-empty block with a link to your post, for example <a class="blog-post" href="blog/my-first-post.html"><span>2026 · ESSAY</span><strong>My first post</strong><span>Read essay ↗</span></a>.
  4. Add matching labels in the en and zh translation objects in script.js if you want the blog listing to switch languages. The article body can be in either language.
  5. Commit the new article and blog.html changes to master; GitHub Pages will publish them.