该项为可选置项,array
类型,包含名称,状态等信息
在项目目录 config.toml,可配置该项
设置
1[[article]]
2name = "post"
3catalog = true
4template = "posts"
5
6[[article]]
7……
Notice:
-
该项为列表类型,支持配置多个非重名[name]配置项
-
该项下文件的访问路径为
/{artile-name}/{file-name}/
释义
-
name
设置文章
存储目录
和详情页渲染模板
名称,string
类型
-
该目录需自行创建
-
该目录支持多级子目录
-
catalog
设置目录状态,
bool
类型
-
若设置为 false,则不生成目录
-
若设置为 true,则生成
-
catalog(文章目录)
使用指定
template
模板渲染 -
若
meta
已设置 date,category,tag,则生成-
archive(归档)
使用
archive.html
模板渲染 -
category(分类)
使用
category.html
模板渲染 -
tag(标签)
使用
tag.html
模板渲染
-
-
-
template
设置目录渲染模板,
string
类型