lektor-website/models/blog.ini

17 lines
283 B
INI
Raw Normal View History

2015-12-19 14:52:17 +01:00
[model]
name = Blog
label = Blog
hidden = yes
2016-01-09 23:26:59 +01:00
[fields.summary]
type = string
2015-12-19 14:52:17 +01:00
[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