section template为列表类型的模板, 用来展示section tree中某个的节点文章列表, Kind可以轻松地与模板中的where函数结合使用,以创建种类特定的内容列表.

section模板的查找顺序

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
layouts/section的值/section的值.html 
layouts/section的值/section.html 
layouts/section的值/list.html 

layouts/section/section的值.html 
layouts/section/section.html 
layouts/section/list.html 

layouts/_default/section的值.html 
layouts/_default/section.html 
layouts/_default/list.html

设置type的section模板的查找顺序

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
layouts/type的值/section的值.html 
layouts/type的值/section.html 
layouts/type的值/list.html 

layouts/section的值/section的值.html 
layouts/section的值/section.html 
layouts/section的值/list.html 

layouts/section/section的值.html 
layouts/section/section.html 
layouts/section/list.html 

layouts/_default/section的值.html 
layouts/_default/section.html 
layouts/_default/list.html