From 6e172e04675d0977c22fc76cfe315366ad918066 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Sat, 11 Jul 2020 17:23:03 +0200 Subject: [PATCH] + Blog FM --- static/admin/config.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/static/admin/config.yml b/static/admin/config.yml index f43d408e..03e61173 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -15,7 +15,7 @@ collections: slug: "{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md fields: # The fields for each document, usually in front matter - {label: "Name", name: "title", widget: "string"} - - {label: "Hintergrundbild", name: "bg_image", widget: "image", default: "images/backgrounds/page-title.jpg"} + - {label: "Hintergrundbild", name: "bg_image", widget: "image", default: "/images/slide1.jpg"} - {label: "Metabeschreibung", name: "description", widget: "text", default: ""} - {label: "Gravatar-E-Mail", name: "email", widget: "string"} - {label: "Foto", name: "image", widget: "image"} @@ -27,3 +27,20 @@ collections: - {label: "Link", name: "link", widget: "string"} required: false - {label: "Beschreibung", name: "body", widget: "markdown"} + - name: "blog-de" + label: "Deutsh/Blogbeitrag" + folder: "content/german/blog" + create: true + slug: "{{slug}}" + fields: + - {label: "Titel", name: "title", widget: "string"} + - {label: "Datum", name: "date", widget: "datetime"} + - {label: "Entwurf", name: "draft", widget: "boolean"} + - {label: "Hintergrundbild", name: "bg_image", widget: "image", default: "/images/slide1.jpg"} + - {label: "Metabeschreibung", name: "description"} + - {label: "Beitragsbild", name: "image", widget: "image", default: "/images/image.png"} + - {label: "Autor", name: "author", widget: "string, default: "CantorTechnik AG"} + - {label: "Kategorien", name: "cathegories", widget: "list") + - {label: "Tags", name: "tags", widget: "list"} + - {label: "Type", name: "type", widget: "hidden", default: "post"} + - {label: "Text", name: "body", widget: "markdown"}