This commit is contained in:
Denys Konovalov 2020-07-11 14:34:49 +02:00
parent 7a68e020b3
commit 91f16b14ba

@ -8,20 +8,21 @@ media_folder: "static/images"
collections: collections:
- name: "author-de" # Used in routes, e.g., /admin/collections/blog - name: "author-de" # Used in routes, e.g., /admin/collections/blog
label: "Deutsch-Autor" # Used in the UI label: "Deutsch/Autor" # Used in the UI
folder: "content/german/author" # The path to the folder where the documents are stored 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 create: true # Allow users to create new documents in this collection
slug: "{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md slug: "{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
fields: # The fields for each document, usually in front matter fields: # The fields for each document, usually in front matter
- {label: "Name", name: "title", widget: "string"} - {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/backgrounds/page-title.jpg"}
- {label: "Metabeschreibung", name: "description", widget: "text"} - {label: "Metabeschreibung", name: "description", widget: "text", default: ""}
- {label: "Gravatar-E-Mail", name: "email", widget: "string"} - {label: "Gravatar-E-Mail", name: "email", widget: "string"}
- {label: "Foto", name: "image", widget: "image"} - {label: "Foto", name: "image", widget: "image"}
- label: "Soz. Netzwerke/Kontakt" - label: "Soz. Netzwerke/Kontaktdaten"
name: "social" name: "social"
widget: "object" widget: "list"
fields: fields:
- {label: "Symbol", name: "icon", widget: "string"} - {label: "Symbol", name: "icon", widget: "string", hint: "Symbolname von https://themify.me/themify-icons"}
- {label: "Link", name: "link", widget: "string"} - {label: "Link", name: "link", widget: "string"}
required: false
- {label: "Beschreibung", name: "body", widget: "markdown"} - {label: "Beschreibung", name: "body", widget: "markdown"}