我有一个容器,例如:students.{title, description, children=student} 和 student={title, ...}
# students.ini
[model]
name = Students
[fields.title]
label = Title
type = string
[fields.description]
label = Description
type = markdown
[children]
model = student
# student.ini
[model]
name = Student
[fields.title]
label = Title
type = string
我想获得 studentS 容器的标题/描述。
{% set root = site.get('/students') %}
{{ root.description }}
但是使用get
or query
,我得到列表而不是容器......
任何想法?
谢谢