admin: further progress configuring DecapCMS
This commit is contained in:
@ -12,14 +12,51 @@ public_folder: "/images/uploads"
|
||||
site_url: "https://scbn.ch"
|
||||
locale: fr
|
||||
collections:
|
||||
- name: "activite"
|
||||
label: "Activités"
|
||||
- label: "Activités (autre)"
|
||||
name: "activite_autre"
|
||||
widget: "string"
|
||||
folder: "content/activite"
|
||||
preview_path: "activite/{{slug}}"
|
||||
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
|
||||
summary: "{{expiryDate}} {{title}} ({{type}})"
|
||||
sortable_fields: ["expiryDate", "type", "title"]
|
||||
create: true
|
||||
fields:
|
||||
- { label: "Titre", name: "title", widget: "string" }
|
||||
- { label: "Date", name: "expiryDate", widget: "datetime", date_format: "YYYY-MM-DD" }
|
||||
- { label: "Date publication", name: "publishDate", widget: "hidden", default: "{{now}}" }
|
||||
- { label: "Contenu", name: "body", widget: "markdown" }
|
||||
- { label: "Type", name: "type", widget: "select", default: "autre", options: [ski, camp, AG, autre] }
|
||||
- { label: "Contenu", name: "body", widget: "markdown", modes: [rich_text] }
|
||||
- label: "Nouvelles"
|
||||
name: "nouvelle"
|
||||
widget: "string"
|
||||
folder: "content/nouvelle"
|
||||
preview_path: "nouvelle/{{slug}}"
|
||||
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
|
||||
create: true
|
||||
fields:
|
||||
- { label: "Titre", name: "title", widget: "string" }
|
||||
- { label: "Date", name: "date", widget: "datetime", date_format: "YYYY-MM-DD" }
|
||||
- { label: "Date expiration", name: "expiryDate", widget: "datetime", date_format: "YYYY-MM-DD", required: false }
|
||||
- { label: "Contenu", name: "body", widget: "markdown", modes: [rich_text] }
|
||||
- label: "Pages"
|
||||
name: "pages"
|
||||
files:
|
||||
- label: "Accueil"
|
||||
name: "home"
|
||||
file: "content/_index.md"
|
||||
fields:
|
||||
- { label: Titre, name: title, widget: string }
|
||||
- { label: Contenu, name: body, widget: markdown, modes: [rich_text] }
|
||||
- label: "Le Club"
|
||||
name: "club"
|
||||
file: "content/club/_index.md"
|
||||
fields:
|
||||
- { label: Titre, name: title, widget: string }
|
||||
- { label: Contenu, name: body, widget: markdown, modes: [rich_text] }
|
||||
- label: "Contact"
|
||||
name: "contact"
|
||||
file: "content/contact/_index.md"
|
||||
fields:
|
||||
- { label: Titre, name: title, widget: string }
|
||||
- { label: Contenu, name: body, widget: markdown, modes: [rich_text] }
|
||||
|
||||
0
static/images/uploads/.gitkeep
Normal file
0
static/images/uploads/.gitkeep
Normal file
Reference in New Issue
Block a user