quentin.dufour.io/admin/config.yml

118 lines
3.5 KiB
YAML
Raw Permalink Normal View History

2022-08-27 14:30:17 +00:00
backend:
2023-02-27 17:51:18 +00:00
name: gitea
repo: quentin/quentin.dufour.io
2023-02-28 10:11:29 +00:00
base_url: https://teabag.deuxfleurs.fr
2023-02-27 17:51:18 +00:00
api_root: https://git.deuxfleurs.fr/api/v1
branch: master
2022-11-24 22:10:16 +00:00
media_folder: 'assets/'
2023-02-27 17:51:18 +00:00
#publish_mode: editorial_workflow
2022-11-24 22:10:16 +00:00
site_url: https://quentin.dufour.io
display_url: https://quentin.dufour.io
locale: 'fr'
2022-08-27 14:30:17 +00:00
collections:
2023-02-28 12:53:49 +00:00
- 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'
2022-11-24 22:10:16 +00:00
- name: 'article'
label: 'Article'
2023-02-28 12:53:49 +00:00
description: "Articles de blog"
2022-08-27 14:30:17 +00:00
folder: '_posts/'
2022-11-24 22:10:16 +00:00
editor:
preview: false
create: true
slug: '{{year}}-{{month}}-{{day}}-{{slug}}'
2023-02-28 13:05:18 +00:00
sortable_fields:
fields: [ 'commit_date', 'date', 'title', 'author' ]
default:
field: commit_date
direction: Descending
2023-02-28 12:53:49 +00:00
view_filters:
- label: "Publié"
field: status
pattern: 'published'
- label: "Brouillon"
field: status
pattern: 'draft'
2022-08-27 14:30:17 +00:00
fields:
2022-11-24 22:10:16 +00:00
- { label: 'Layout', name: 'layout', widget: 'hidden', default: 'post' }
- { label: 'Title', name: 'title', widget: 'string' }
- { label: 'Publish Date', name: 'date', widget: 'datetime' }
2023-02-28 12:53:49 +00:00
- 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'
2022-11-24 22:10:16 +00:00
- { label: 'Body', name: 'body', widget: 'markdown' }