diff --git a/data/de/homepage.yml b/data/de/homepage.yml index 7e80f67..39dd3ba 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 c85adef..a6a4fd0 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 3e5054b..79a14d6 100644 --- a/static/admin/index.html +++ b/static/admin/index.html @@ -4,8 +4,6 @@ GCG Website: Netlify CMS - -