This commit is contained in:
2020-07-12 10:41:10 +02:00
parent f253a55a1b
commit 008219d0d7
6 changed files with 57 additions and 56 deletions

View File

@ -6,6 +6,10 @@ backend:
media_folder: "static/images"
public_folder: "/images"
site_url: https://eesev9ie.github.io
display_url: https://eesev9ie.github.io
logo_url: https://eesev9ie.github.io/images/logo_y.svg
locale: "de"
collections:
- name: "author-de" # Used in routes, e.g., /admin/collections/blog
@ -13,6 +17,8 @@ collections:
folder: "content/german/author" # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
slug: "{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
editor:
preview: false
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/slide1.jpg"}
@ -32,6 +38,8 @@ collections:
folder: "content/german/blog"
create: true
slug: "{{slug}}"
editor:
preview: false
fields:
- {label: "Titel", name: "title", widget: "string"}
- {label: "Datum", name: "date", widget: "datetime"}
@ -39,13 +47,16 @@ collections:
- {label: "Hintergrundbild", name: "bg_image", widget: "image", default: "/images/slide1.jpg"}
- {label: "Metabeschreibung", name: "description", widget: "text", default: "", required: false}
- {label: "Beitragsbild", name: "image", widget: "image", default: "/images/image.png"}
- {label: "Autor", name: "author", widget: "string", default: "CantorTechnik AG"}
- label: "Post Author"
name: "author"
widget: "relation"
collection: "author-de"
searchFields: ["title"]
valueField: "title"
displayFields: ["title"]
- label: "Kategorien"
name: "cathegories"
widget: "list"
- label: "Tags"
name: "tags"
widget: "list"
required: false
- {label: "Tags", name: "tags", widget: "list", required: false, hint: '''["Tag 1", "Tag 2"]'''}
- {label: "Type", name: "type", widget: "hidden", default: "post"}
- {label: "Text", name: "body", widget: "markdown"}