- Managed as Markdown files
- One article = one directory (
posts/<slug>/index.md) - YAML front matter for metadata
title(required): article titledate(required): publish date (YYYY-MM-DD)updated(optional): update date (YYYY-MM-DD)tags(optional): list of tags
| Page | URL | HTML File |
|---|---|---|
| Top | / |
public/index.html |
| Article | /posts/<slug>/ |
public/posts/<slug>/index.html |
| Tag list | /tags/ |
public/tags/index.html |
| Tag page | /tags/<tag>/ |
public/tags/<tag>/index.html |
| Search | /search/ |
public/search/index.html |
| About | /about/ |
public/about/index.html |
| RSS | /rss.xml |
public/rss.xml |
| Search index | /search-index.json |
public/search-index.json |
- Slug: English, kebab-case, short
- Trailing slash required
- Canonical URL in HTML
- Read all
posts/*/index.md - Parse front matter
- Convert each article to HTML via Pandoc (
templates/post.html) - Generate article index page (date desc)
- Generate tag pages (article list per tag)
- Generate tag index page
- Generate
search-index.json(title, url, tags, content as plain text) - Generate
rss.xml - Output everything to
public/
Pandoc template format. Required elements:
<meta charset="utf-8"><title>$title$</title><link rel="canonical" href="..."><link rel="stylesheet" href="/style.css">- Prism.js CSS/JS
- Mermaid CDN
- Copy button JS
- Navigation (home, tags, search, about)
- Prism.js
- Language specification required in Markdown code blocks
- Copy button on each block
- Output as
<pre><code class="language-xxx">
- Loaded from CDN
- Use
```mermaidblocks in Markdown - Output as
<pre class="mermaid">in HTML - Rendered client-side
search-index.jsongenerated at build time- Contains title, url, tags, content (plain text) per article
- Client-side fuzzy search via Fuse.js
- Search page (
/search/) with input form and results area
rss.xmlgenerated at build time- Contains title, link, description per article
- Served via S3 + CloudFront
- Subdomain
img.example.com(after custom domain setup) - Referenced as full absolute URL:
 - Image directory mirrors article slug
- Manual upload
- Brief profile
- Recent articles list
- Tag list
- Link to all articles
- giscus (GitHub Discussions based)
- Add script tag to HTML template
- No comments initially
- GitHub Actions triggered on push to main
- Install Pandoc → build → deploy to gh-pages branch
- Uses
peaceiris/actions-gh-pages@v4 - Generated HTML never committed to main