lektor-website/models/blog.ini

17 lines
283 B
INI

[model]
name = Blog
label = Blog
hidden = yes
[fields.summary]
type = string
[children]
model = blog-post
order_by = -pub_date, title
slug_format = {{ ((this.pub_date.year ~ '/' ~ this.pub_date.month ~ '/') if this.pub_date) ~ this._id }}
[pagination]
enabled = yes
per_page = 10