这是部署在 GitHub Pages 上的纯静态博客。
index.html:首页,展示最近文章。archive.html:所有文章归档。about.html:关于页面。posts/:文章页面。css/blog.css:博客样式。js/search-data.js:搜索索引。js/site-search.js:前端搜索逻辑。img/blog-mark.svg:站点图标。legacy-home/:旧首页备份。
- 复制
posts/里的任意一篇文章,改文件名、标题、日期和正文。 - 在
archive.html的post-list里新增一行。 - 在
js/search-data.js里新增对应文章的标题、日期、摘要和正文关键词。 - 如果是最近文章,也同步更新
index.html的最近文章列表。 - 提交并推送到
master,GitHub Pages 会自动更新。