diff options
Diffstat (limited to 'models/blog.ini')
| -rw-r--r-- | models/blog.ini | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/models/blog.ini b/models/blog.ini new file mode 100644 index 0000000..0d612ff --- /dev/null +++ b/models/blog.ini @@ -0,0 +1,17 @@ +[model] +name = Blog +label = Blog +hidden = yes + +[fields.author] +label = Author +type = string + +[children] +model = blog-post +order_by = -publication_date, title +slug_format = {{ (this.publication_date|dateformat('YYYY/MM/') if this.publication_date) ~ this._id }} + +[pagination] +enabled = yes +per_page = 5 |
