summaryrefslogtreecommitdiff
path: root/models/blog-post.ini
diff options
context:
space:
mode:
authorDennis Fink2026-06-18 17:57:51 +0200
committerDennis Fink2026-06-18 17:57:51 +0200
commita4e35942fee745e64db5d0099ba2582e0fb4417e (patch)
treef109c3e77805cdacd6f443c8a2d47514be5254a2 /models/blog-post.ini
parente0904e48a5c1c5b327c29218fb39bf2fa05f1871 (diff)
downloaddennisfink.me-a4e35942fee745e64db5d0099ba2582e0fb4417e.tar.gz
dennisfink.me-a4e35942fee745e64db5d0099ba2582e0fb4417e.zip
Build the first usable version of the blog
This adds the Lektor project structure, models, templates, styling, feeds, categories, tags, archives, custom Markdown heading handling, and the initial content needed to make the blog usable.
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