forked from quentin/quentin.dufour.io
117 lines
3.5 KiB
YAML
117 lines
3.5 KiB
YAML
backend:
|
|
name: gitea
|
|
repo: quentin/quentin.dufour.io
|
|
base_url: https://teabag.deuxfleurs.fr
|
|
api_root: https://git.deuxfleurs.fr/api/v1
|
|
branch: master
|
|
|
|
media_folder: 'assets/'
|
|
#publish_mode: editorial_workflow
|
|
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}}'
|
|
sortable_fields:
|
|
fields: [ 'commit_date', 'date', 'title', 'author' ]
|
|
default:
|
|
field: commit_date
|
|
direction: Descending
|
|
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' }
|