forked from quentin/quentin.dufour.io
ajout de la configuration
This commit is contained in:
parent
61ea2bb973
commit
751468de8e
1 changed files with 87 additions and 0 deletions
|
@ -11,15 +11,102 @@ site_url: https://quentin.dufour.io
|
|||
display_url: https://quentin.dufour.io
|
||||
locale: 'fr'
|
||||
collections:
|
||||
- name: 'configuration'
|
||||
label: 'Configuration'
|
||||
description: 'Configuration générale du site web'
|
||||
files:
|
||||
- name: 'jekyll'
|
||||
label: 'Jekyll'
|
||||
file: '_config.yml'
|
||||
fields:
|
||||
- name: name
|
||||
label: 'Nom du site web'
|
||||
widget: string
|
||||
- name: author
|
||||
label: 'Auteur du site'
|
||||
widget: string
|
||||
- name: url
|
||||
label: 'URL racine'
|
||||
widget: string
|
||||
- name: description
|
||||
label: 'Description du site'
|
||||
widget: string
|
||||
- name: 'markdown'
|
||||
label: 'Moteur de markdown'
|
||||
widget: string
|
||||
- name: 'highlighter'
|
||||
label: 'Coloration syntaxique'
|
||||
widget: string
|
||||
- name: 'permalink'
|
||||
label: 'Format des permaliens'
|
||||
widget: string
|
||||
- name: defaults
|
||||
label: 'Gabarits par défaut'
|
||||
widget: list
|
||||
fields:
|
||||
- name: scope
|
||||
label: 'Portée'
|
||||
widget: object
|
||||
fields:
|
||||
- name: 'path'
|
||||
label: 'Chemin'
|
||||
widget: string
|
||||
- name: 'type'
|
||||
label: 'Type de contenu'
|
||||
widget: 'select'
|
||||
options: [ 'pages', 'posts' ]
|
||||
default: 'posts'
|
||||
- name: values
|
||||
label: 'Valeurs'
|
||||
widget: 'object'
|
||||
fields:
|
||||
- name: 'layout'
|
||||
label: 'Nom du gabarit'
|
||||
widget: 'select'
|
||||
options: [ 'default', 'post' ]
|
||||
default: 'default'
|
||||
- name: 'plugins'
|
||||
label: 'Extensions'
|
||||
widget: 'list'
|
||||
fields:
|
||||
- name: 'plugin_name'
|
||||
label: 'Plugin'
|
||||
widget: 'string'
|
||||
|
||||
- name: 'article'
|
||||
label: 'Article'
|
||||
description: "Articles de blog"
|
||||
folder: '_posts/'
|
||||
editor:
|
||||
preview: false
|
||||
create: true
|
||||
slug: '{{year}}-{{month}}-{{day}}-{{slug}}'
|
||||
view_filters:
|
||||
- label: "Publié"
|
||||
field: status
|
||||
pattern: 'published'
|
||||
- label: "Brouillon"
|
||||
field: status
|
||||
pattern: 'draft'
|
||||
fields:
|
||||
- { label: 'Layout', name: 'layout', widget: 'hidden', default: 'post' }
|
||||
- { label: 'Title', name: 'title', widget: 'string' }
|
||||
- { label: 'Publish Date', name: 'date', widget: 'datetime' }
|
||||
- label: 'Status'
|
||||
name: 'status'
|
||||
widget: 'select'
|
||||
options: [ 'draft', 'published' ]
|
||||
default: 'draft'
|
||||
- label: 'Sitemap'
|
||||
name: 'sitemap'
|
||||
widget: 'boolean'
|
||||
default: true
|
||||
- label: 'Category'
|
||||
name: 'category'
|
||||
widget: 'select'
|
||||
default: 'divers'
|
||||
options: [ 'operation', 'developpement', 'divers', 'securite' ]
|
||||
- label: 'Description'
|
||||
name: 'description'
|
||||
widget: 'string'
|
||||
- { label: 'Body', name: 'body', widget: 'markdown' }
|
||||
|
|
Loading…
Reference in a new issue