From a8ba4475d94cd15f12c3df6fe10b6559b6f2b33b Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Sat, 11 Jul 2020 14:06:51 +0200 Subject: [PATCH] Admin + FM --- content/german/author/denys-konovalov.md | 2 +- static/admin/config.yml | 24 ++++++++++++++++-------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/content/german/author/denys-konovalov.md b/content/german/author/denys-konovalov.md index b37110e..918ecbc 100644 --- a/content/german/author/denys-konovalov.md +++ b/content/german/author/denys-konovalov.md @@ -6,7 +6,7 @@ bg_image: "images/backgrounds/page-title.jpg" description : "" email: "denys.konovalov@pm.me" # portrait -photo: "images/people/dkonovalov.png" +image: "images/people/dkonovalov.png" social: - icon : "ti-twitter-alt" # themify icon pack : https://themify.me/themify-icons link : "https://twitter.com/LXDB_DE" diff --git a/static/admin/config.yml b/static/admin/config.yml index 8fdcdff..dcc8a51 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -7,13 +7,21 @@ backend: media_folder: "static/images" collections: - - name: "blog" # Used in routes, e.g., /admin/collections/blog - label: "Blog" # Used in the UI - folder: "_posts/" # The path to the folder where the documents are stored + - name: "author-de" # Used in routes, e.g., /admin/collections/blog + label: "Deutsch-Autor" # Used in the UI + 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: "{{year}}-{{month}}-{{day}}-{{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 - - {label: "Title", name: "title", widget: "string"} - - {label: "Publish Date", name: "date", widget: "datetime"} - - {label: "Tags", name: "tags", widget: "list"} - - {label: "Body", name: "body", widget: "markdown"} + - {label: "Name", name: "title", widget: "string"} + - {label: "Hintergrundbild", name: "bg_image", widget: "image", "default: "images/backgrounds/page-title.jpg"} + - {label: "Metabeschreibung", name: "description", widget: "text"} + - {label: "Gravatar-E-Mail", name: "email", widget: "string"} + - {label: "Foto", name: "image", widget: "image"} + - label: "Sozielle Netzwerke/Kontakt" + name: "social" + widget: "object" + fields: + - {label: "Symbol", name: "icon", widget: "string"} + - {label: "Link", name: "link", widget: "string"} + - {label: "Beschreibung", name: "body", widget: "markdown"}