在“页面管理”中,如果某个页面拥有子页面,则可以导航到子页面,并添加子页面,依次循环。
在Baklib中没有“栏目”“文章”等分类,所有的页面都作为一个Page而存在。
如何定义子页面?
在编写一个页面模板的时候,如果指定了其 sub_page_templates
属性的值,则证明其拥有子页面(子页面模板可以是多个)。
// templates/blog.liquid
{% schema %}
{
"name": "博客栏目页",
"thumb_url": "images/theme/blog.png",
"description": "博客列表首页",
"sub_page_templates": ["post"],
"settings": [
]
}
{% endschema%}