Skip to content

Commit

Permalink
edit config again
Browse files Browse the repository at this point in the history
  • Loading branch information
aloxe committed Sep 15, 2024
1 parent 7fab760 commit f57e4ea
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/assets/public/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ backend:
repo: aloxe/reunionweb # Path to your GitHub repository
branch: ecrire
base_url: https://my.reunionweb.org # Path to ext auth provider
media_folder: "media/uploads"

media_folder: "src/static/img"

collections:
- name: "articles" # Used in routes, e.g., /admin/collections/blog
Expand All @@ -19,21 +20,20 @@ collections:
- {label: "Publish Date", name: "date", widget: "datetime", time_format: false, date_format: "YYYY-MM", format: "YYYY-MM"}
- label: "categorie"
name: "categorie"
widget: "list"
fields:
- { label: "Source", name: "src", widget: "string" }
- { label: "Alt Text", name: "alt", widget: "string" }
widget: "select"
multiple: true,
options: ["news", "portails", "blogs"]
default: ["news"]
- {label: "Body", name: "body", widget: "markdown"}
- name: "decouverte" # Used in routes, e.g., /admin/collections/blog
label: "Découverte" # Used in the UI
folder: "src/pages/decouverte" # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
slug: "" # Filename template, e.g., YYYY-MM-DD-title.md
fields: # The fields for each document, usually in front matter

- name: "decouverte"
label: "Découverte"
folder: "src/pages/decouverte"
create: true
slug: ""
fields:
- {label: "Layout", name: "layout", widget: "hidden", default: "post"}
- {label: "Title", name: "title", widget: "string"}
- {label: "description", name: "description", widget: "string"}
- {label: "keywords", name: "keywords", widget: "string"}
- {label: "Publish Date", name: "date", widget: "datetime", time_format: false, date_format: "YYYY-MM", format: "YYYY-MM"}
- {label: "categorie", name: "categorie", widget: "select", multiple: true, options: ["news", "portails", "blogs"], default: ["news"]}
- {label: "Body", name: "body", widget: "markdown"}

0 comments on commit f57e4ea

Please sign in to comment.