From 030fd5b360a92573b0ccfac94067edd2faaa0f2c Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Sat, 26 Mar 2022 18:53:47 +0100 Subject: [PATCH] update config.yml --- data/de/homepage.yml | 1 - static/admin/config.yml | 33 +++++++++++++++++++++++++++++++++ static/admin/index.html | 2 -- 3 files changed, 33 insertions(+), 3 deletions(-) diff --git a/data/de/homepage.yml b/data/de/homepage.yml index 7e80f676..39dd3bae 100644 --- a/data/de/homepage.yml +++ b/data/de/homepage.yml @@ -1,4 +1,3 @@ -################################# Slider ##################################### slider: enable : true bg_image : "media/banner/banner.webp" diff --git a/static/admin/config.yml b/static/admin/config.yml index c85adef7..a6a4fd07 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -29,6 +29,39 @@ collections: media_folder: "static/media" public_folder: "media" files: + - name: "homepage-config" + label: "Startseitenkonfiguration" + file: "data/de/homepage.yml" + fields: + - label: "Slider" + name: "slider" + widget: "object" + fields: + - {label: "Aktivieren", name: "enable", widget: "boolean"} + - {label: "Hintergrundbild", name: "bg_image", widget: "image"} + - {label: "Titel", name: "title", widget: "string"} + - label: "Elemente" + name: "slider_item" + widget: "list" + fields: + - {label: "Inhalt", name: "content", widget: "string"} + - label: "Einblendeanimation" + name: "animation_in" + widget: "select" + options: ["left", "right", "up", "down"] + - label: "Ausblendeanimation" + name: "animation_out" + widget: "select" + options: ["left", "right", "up", "down"] + - label: "Button" + name: "button" + widget: "object" + fields: + - {label: "Aktivieren", name: "enable", widget: "boolean"} + - {label: "Bezeichnung", name: "label", widget: "string"} + - {label: "Link", name: "link", widget: "string"} + + - name: "hugo-config" label: "Website-Konfiguration" file: "config.toml" diff --git a/static/admin/index.html b/static/admin/index.html index 3e5054ba..79a14d6e 100644 --- a/static/admin/index.html +++ b/static/admin/index.html @@ -4,8 +4,6 @@ GCG Website: Netlify CMS - -