From 971b29983c48579ef4b74a210dbf867aa15139bb Mon Sep 17 00:00:00 2001 From: maxime-cool Date: Wed, 24 Jan 2024 10:38:00 +0100 Subject: [PATCH] changed api root --- static/admin/config.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/static/admin/config.yml b/static/admin/config.yml index 88e6cc6..15c72ae 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -2,11 +2,12 @@ backend: name: gitea repo: maximeg/palettetest # Path to your Gitea repository app_id: e8c9892d-30f2-428f-b639-172402acbf94 # The Client ID provided by Gitea - api_root: https://git.deuxfleurs.fr/api # API URL of your Gitea instance + api_root: https://git.deuxfleurs.fr/api/v1 # API URL of your Gitea instance base_url: https://git.deuxfleurs.fr/ # Root URL of your Gitea instance # optional, defaults to main # branch: main -media_folder: "static/images/uploads" +media_folder: "static" +public_folder: "/images/uploads" collections: - name: posts identifier_field: name @@ -20,4 +21,16 @@ collections: - { label: 'Featured Image', name: 'thumbnail', widget: 'image' } - { label: 'Rating (scale of 1-5)', name: 'rating', widget: 'number' } - { label: 'Body', name: 'body', widget: 'markdown' } - + - label: 'Settings' + name: settings + files: + - label: 'Theme Settings' + name: theme settings + file: 'site/settings.toml' + fields: + - label: toml file + name: toml file + widget: 'file' + media_library: + config: + multiple: true