summaryrefslogtreecommitdiff
path: root/models/blog-post.ini
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--models/blog-post.ini39
1 files changed, 39 insertions, 0 deletions
diff --git a/models/blog-post.ini b/models/blog-post.ini
new file mode 100644
index 0000000..4f36c1e
--- /dev/null
+++ b/models/blog-post.ini
@@ -0,0 +1,39 @@
+[model]
+name = Blog Post
+label = {{ this.title }}
+
+[fields.title]
+label = Title
+type = string
+size = large
+
+[fields.publication_date]
+label = Publication date
+type = date
+width = 1/2
+
+[fields.updated_date]
+label = Updated date
+type = date
+width = 1/2
+
+[fields.category]
+label = Category
+type = select
+source = site.query('/categories')
+width = 1/2
+
+[fields.render_toc]
+label = Render TOC
+type = boolean
+checkbox_label = If true, then a TOC will be rendered in the webpage.
+default = false
+width = 1/2
+
+[fields.body]
+label = Body
+type = markdown
+
+[fields.tags]
+label = Tags
+type = strings