主题
配置文件
配置由项目模型插件解释。默认博客模型使用 YAML,最小配置:
title: 我的博客
subtitle: 记录和分享
author: Your Name
language: zh-CN
theme: default
source_dir: source
public_dir: public
GitHub 部署插件可以消费 deploy.repository 和 deploy.branch;主题插件可以消费 theme 下的自定义字段。Core 不认识任何这些字段。
修改 source_dir 后,文章会从新目录读取;修改 public_dir 后,生成结果会写入新目录。配置错误应先检查缩进、字段拼写和插件版本。