本站使用自定义布局 sectionportfolio 实现分区首页。

思路

  1. 文章用 categories 归类(CSOL、WWR、作品墙等)
  2. source/csol/index.md 等页面指定 layout: sectionsection_category
  3. 主题模板按分类过滤 site.posts

新建文章

1
2
3
cd xty19-site
npx hexo new "文章标题"
# 编辑 front matter 中的 categories

日常更推荐打开 http://localhost:4000/admin/ 在网页后台编辑,无需改源码。

部署前执行 hexo generate 生成静态文件。