gcg-website/static/admin/config.yml

63 lines
2.7 KiB
YAML
Raw Normal View History

2020-07-11 13:45:14 +02:00
backend:
name: github
repo: eesev9ie/gcg-website
branch: master
site_domain: eesev9ie.netlify.app
media_folder: "static/images"
2020-07-11 14:50:24 +02:00
public_folder: "/images"
2020-07-12 10:41:10 +02:00
site_url: https://eesev9ie.github.io
display_url: https://eesev9ie.github.io
logo_url: https://eesev9ie.github.io/images/logo_y.svg
locale: "de"
2020-07-11 13:45:14 +02:00
collections:
2020-07-11 14:06:51 +02:00
- name: "author-de" # Used in routes, e.g., /admin/collections/blog
2020-07-11 14:34:49 +02:00
label: "Deutsch/Autor" # Used in the UI
2020-07-11 14:06:51 +02:00
folder: "content/german/author" # The path to the folder where the documents are stored
2020-07-11 13:45:14 +02:00
create: true # Allow users to create new documents in this collection
2020-07-11 14:06:51 +02:00
slug: "{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
2020-07-12 10:41:10 +02:00
editor:
preview: false
2020-07-11 13:45:14 +02:00
fields: # The fields for each document, usually in front matter
2020-07-11 14:06:51 +02:00
- {label: "Name", name: "title", widget: "string"}
2020-07-11 17:23:03 +02:00
- {label: "Hintergrundbild", name: "bg_image", widget: "image", default: "/images/slide1.jpg"}
2020-07-11 17:35:50 +02:00
- {label: "Metabeschreibung", name: "description", widget: "text", default: "", required: false}
2020-07-11 14:06:51 +02:00
- {label: "Gravatar-E-Mail", name: "email", widget: "string"}
- {label: "Foto", name: "image", widget: "image"}
2020-07-11 14:34:49 +02:00
- label: "Soz. Netzwerke/Kontaktdaten"
2020-07-11 14:06:51 +02:00
name: "social"
2020-07-11 14:34:49 +02:00
widget: "list"
2020-07-11 14:06:51 +02:00
fields:
2020-07-11 14:34:49 +02:00
- {label: "Symbol", name: "icon", widget: "string", hint: "Symbolname von https://themify.me/themify-icons"}
2020-07-11 14:06:51 +02:00
- {label: "Link", name: "link", widget: "string"}
2020-07-11 14:34:49 +02:00
required: false
2020-07-11 14:06:51 +02:00
- {label: "Beschreibung", name: "body", widget: "markdown"}
2020-07-11 17:23:03 +02:00
- name: "blog-de"
label: "Deutsh/Blogbeitrag"
folder: "content/german/blog"
create: true
slug: "{{slug}}"
2020-07-12 10:41:10 +02:00
editor:
preview: false
2020-07-11 17:23:03 +02:00
fields:
- {label: "Titel", name: "title", widget: "string"}
- {label: "Datum", name: "date", widget: "datetime"}
2020-07-11 17:43:10 +02:00
- {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false}
2020-07-11 17:23:03 +02:00
- {label: "Hintergrundbild", name: "bg_image", widget: "image", default: "/images/slide1.jpg"}
2020-07-11 17:35:50 +02:00
- {label: "Metabeschreibung", name: "description", widget: "text", default: "", required: false}
2020-07-11 17:23:03 +02:00
- {label: "Beitragsbild", name: "image", widget: "image", default: "/images/image.png"}
2020-07-12 10:41:10 +02:00
- label: "Post Author"
name: "author"
widget: "relation"
collection: "author-de"
searchFields: ["title"]
valueField: "title"
displayFields: ["title"]
2020-07-11 17:35:50 +02:00
- label: "Kategorien"
name: "cathegories"
widget: "list"
2020-07-12 10:41:10 +02:00
- {label: "Tags", name: "tags", widget: "list", required: false, hint: '''["Tag 1", "Tag 2"]'''}
2020-07-11 17:23:03 +02:00
- {label: "Type", name: "type", widget: "hidden", default: "post"}
2020-07-11 17:25:03 +02:00
- {label: "Text", name: "body", widget: "markdown"}