From 389360dcc54c3adc70b6fd49f74eb4110a8e2722 Mon Sep 17 00:00:00 2001 From: maxime-cool Date: Mon, 15 Jan 2024 17:54:27 +0100 Subject: [PATCH] added label to collections --- static/admin/config.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/static/admin/config.yml b/static/admin/config.yml index 7014945..f6560b3 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -10,12 +10,14 @@ media_folder: "static/images/uploads" collections: - name: posts identifier_field: name + label: 'Blog' # Used in the UI folder: '_posts/blog' # The path to the folder where the documents are stored slug: '{{year}}-{{month}}-{{day}}-{{slug}}' # Filename template, e.g., yyyy-MM-dd-title.md fields: # The fields for each document, usually in front matter - - {name: 'layout', widget: 'hidden', default: 'blog' } - - {name: 'title', widget: 'string' } - - {name: 'date', widget: 'datetime' } - - {name: 'thumbnail', widget: 'image' } - - {name: 'rating', widget: 'number' } - - {name: 'body', widget: 'markdown' } + - { label: 'Layout', name: 'layout', widget: 'hidden', default: 'blog' } + - { label: 'Title', name: 'title', widget: 'string' } + - { label: 'Publish Date', name: 'date', widget: 'datetime' } + - { label: 'Featured Image', name: 'thumbnail', widget: 'image' } + - { label: 'Rating (scale of 1-5)', name: 'rating', widget: 'number' } + - { label: 'Body', name: 'body', widget: 'markdown' } +