From d916cac8c934b0a4ba645459927d09fe6cdb05dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20Nicou=C3=A9?= Date: Tue, 6 Sep 2022 09:56:38 +0200 Subject: [PATCH] Edit yaml files indentation style --- .editorconfig | 3 + site/blueprints/files/artwork.yml | 86 +++++++++---------- site/blueprints/files/image.yml | 46 +++++----- site/blueprints/pages/biography.yml | 32 +++---- site/blueprints/pages/error.yml | 6 +- site/blueprints/pages/gallery.yml | 12 +-- site/blueprints/pages/home.yml | 32 +++---- .../biography_content_presentation.yml | 36 ++++---- .../sections/gallery_content_artworks.yml | 8 +- .../sections/gallery_content_introduction.yml | 34 ++++---- .../sections/generic_seo_metadata.yml | 82 +++++++++--------- .../home_content_background_image.yml | 8 +- .../sections/home_content_contact.yml | 30 +++---- .../blueprints/sections/home_seo_metadata.yml | 84 +++++++++--------- .../sections/site_content_galleries.yml | 12 +-- .../sections/site_content_pages.yml | 14 +-- site/blueprints/site.yml | 8 +- site/blueprints/tabs/biography_content.yml | 6 +- site/blueprints/tabs/biography_seo.yml | 6 +- site/blueprints/tabs/gallery_content.yml | 8 +- site/blueprints/tabs/gallery_seo.yml | 6 +- site/blueprints/tabs/home_content.yml | 16 ++-- site/blueprints/tabs/home_seo.yml | 6 +- site/blueprints/tabs/site_analytics.yml | 24 +++--- site/blueprints/tabs/site_content.yml | 18 ++-- site/blueprints/users/admin.yml | 24 +++--- site/blueprints/users/editor.yml | 49 ++++++----- 27 files changed, 349 insertions(+), 347 deletions(-) diff --git a/.editorconfig b/.editorconfig index 5c87491..54bbebb 100644 --- a/.editorconfig +++ b/.editorconfig @@ -11,3 +11,6 @@ insert_final_newline = true [*.md] trim_trailing_whitespace = false + +[*.{yaml,yml}] +indent_style = space diff --git a/site/blueprints/files/artwork.yml b/site/blueprints/files/artwork.yml index 9092277..b551872 100644 --- a/site/blueprints/files/artwork.yml +++ b/site/blueprints/files/artwork.yml @@ -1,46 +1,46 @@ title: Artwork accept: - mime: image/jpeg, image/png, video/mp4 + mime: image/jpeg, image/png, video/mp4 fields: - alt_text: - when: - file_type: image - label: - en: Alternative text - fr: Texte alternatif - type: text - help: - en: "Short description displayed if the image can't be loaded and used by screen readers." - fr: "Courte description affichée si l'image ne peut être chargée et utilisée par les lecteurs d'écran." - poster: - when: - file_type: video - label: - en: Poster - fr: Vignette - type: files - uploads: image - layout: cards - image: - ratio: 16/9 - cover: true - back: white - multiple: false - help: - en: "Image displayed before video playback (format: JPEG or PNG). The first image of the video is used if this field is empty." - fr: "Image affichée avant la lecture de la vidéo (format : JPEG ou PNG). La première image de la vidéo est utilisée si ce champ est vide." - width: 1/4 - caption: - label: - en: Caption - fr: Légende - type: textarea - buttons: - - bold - - italic - - '|' - - link - - '|' - help: - en: "Informative text displayed below the image or video." - fr: "Texte informatif affiché sous l'image ou la vidéo." + alt_text: + when: + file_type: image + label: + en: Alternative text + fr: Texte alternatif + type: text + help: + en: "Short description displayed if the image can't be loaded and used by screen readers." + fr: "Courte description affichée si l'image ne peut être chargée et utilisée par les lecteurs d'écran." + poster: + when: + file_type: video + label: + en: Poster + fr: Vignette + type: files + uploads: image + layout: cards + image: + ratio: 16/9 + cover: true + back: white + multiple: false + help: + en: "Image displayed before video playback (format: JPEG or PNG). The first image of the video is used if this field is empty." + fr: "Image affichée avant la lecture de la vidéo (format : JPEG ou PNG). La première image de la vidéo est utilisée si ce champ est vide." + width: 1/4 + caption: + label: + en: Caption + fr: Légende + type: textarea + buttons: + - bold + - italic + - '|' + - link + - '|' + help: + en: "Informative text displayed below the image or video." + fr: "Texte informatif affiché sous l'image ou la vidéo." diff --git a/site/blueprints/files/image.yml b/site/blueprints/files/image.yml index eff828a..b9529ad 100644 --- a/site/blueprints/files/image.yml +++ b/site/blueprints/files/image.yml @@ -1,26 +1,26 @@ title: Image accept: - mime: image/jpeg, image/png + mime: image/jpeg, image/png fields: - alt_text: - label: - en: Alternative text - fr: Texte alternatif - type: text - help: - en: "Short description displayed if the image can't be loaded and used by screen readers." - fr: "Courte description affichée si l'image ne peut être chargée et utilisée par les lecteurs d'écran." - caption: - label: - en: Caption - fr: Légende - type: textarea - buttons: - - bold - - italic - - '|' - - link - - '|' - help: - en: "Informative text displayed below the image." - fr: "Texte informatif affiché sous l'image." + alt_text: + label: + en: Alternative text + fr: Texte alternatif + type: text + help: + en: "Short description displayed if the image can't be loaded and used by screen readers." + fr: "Courte description affichée si l'image ne peut être chargée et utilisée par les lecteurs d'écran." + caption: + label: + en: Caption + fr: Légende + type: textarea + buttons: + - bold + - italic + - '|' + - link + - '|' + help: + en: "Informative text displayed below the image." + fr: "Texte informatif affiché sous l'image." diff --git a/site/blueprints/pages/biography.yml b/site/blueprints/pages/biography.yml index 6c66e45..9cd57d4 100644 --- a/site/blueprints/pages/biography.yml +++ b/site/blueprints/pages/biography.yml @@ -1,21 +1,21 @@ title: - en: Biography - fr: Biographie + en: Biography + fr: Biographie icon: text status: - draft: true - unlisted: true + draft: true + unlisted: true options: - changeSlug: - admin: true - editor: false - changeStatus: false - changeTemplate: false - changeTitle: - admin: true - editor: false - delete: false - duplicate: false + changeSlug: + admin: true + editor: false + changeStatus: false + changeTemplate: false + changeTitle: + admin: true + editor: false + delete: false + duplicate: false tabs: - content: tabs/biography_content - seo: tabs/biography_seo + content: tabs/biography_content + seo: tabs/biography_seo diff --git a/site/blueprints/pages/error.yml b/site/blueprints/pages/error.yml index dc416e4..f3c8a00 100644 --- a/site/blueprints/pages/error.yml +++ b/site/blueprints/pages/error.yml @@ -1,5 +1,5 @@ title: - en: Error - fr: Erreur + en: Error + fr: Erreur options: - read: false + read: false diff --git a/site/blueprints/pages/gallery.yml b/site/blueprints/pages/gallery.yml index 0278379..535d410 100644 --- a/site/blueprints/pages/gallery.yml +++ b/site/blueprints/pages/gallery.yml @@ -1,10 +1,10 @@ title: - en: Gallery - fr: Galerie + en: Gallery + fr: Galerie icon: file-image status: - draft: true - listed: true + draft: true + listed: true tabs: - content: tabs/gallery_content - seo: tabs/gallery_seo + content: tabs/gallery_content + seo: tabs/gallery_seo diff --git a/site/blueprints/pages/home.yml b/site/blueprints/pages/home.yml index 2c346ae..c2efa6f 100644 --- a/site/blueprints/pages/home.yml +++ b/site/blueprints/pages/home.yml @@ -1,21 +1,21 @@ title: - en: Home - fr: Accueil + en: Home + fr: Accueil icon: home status: - draft: true - unlisted: true + draft: true + unlisted: true options: - changeSlug: - admin: true - editor: false - changeStatus: false - changeTemplate: false - changeTitle: - admin: true - editor: false - delete: false - duplicate: false + changeSlug: + admin: true + editor: false + changeStatus: false + changeTemplate: false + changeTitle: + admin: true + editor: false + delete: false + duplicate: false tabs: - content: tabs/home_content - seo: tabs/home_seo + content: tabs/home_content + seo: tabs/home_seo diff --git a/site/blueprints/sections/biography_content_presentation.yml b/site/blueprints/sections/biography_content_presentation.yml index 5581528..6c06eb8 100644 --- a/site/blueprints/sections/biography_content_presentation.yml +++ b/site/blueprints/sections/biography_content_presentation.yml @@ -1,20 +1,20 @@ type: fields fields: - text: - label: - en: Presentation text - fr: Texte de présentation - type: textarea - required: true - size: large - buttons: - - headlines - - '|' - - bold - - italic - - '|' - - link - - email - - '|' - - ul - - '|' + text: + label: + en: Presentation text + fr: Texte de présentation + type: textarea + required: true + size: large + buttons: + - headlines + - '|' + - bold + - italic + - '|' + - link + - email + - '|' + - ul + - '|' diff --git a/site/blueprints/sections/gallery_content_artworks.yml b/site/blueprints/sections/gallery_content_artworks.yml index c4ffedb..aea5a95 100644 --- a/site/blueprints/sections/gallery_content_artworks.yml +++ b/site/blueprints/sections/gallery_content_artworks.yml @@ -1,6 +1,6 @@ headline: - en: Artworks - fr: Œuvres + en: Artworks + fr: Œuvres type: files template: artwork min: 1 @@ -8,5 +8,5 @@ layout: cards size: small limit: 40 image: - ratio: 1/1 - back: white + ratio: 1/1 + back: white diff --git a/site/blueprints/sections/gallery_content_introduction.yml b/site/blueprints/sections/gallery_content_introduction.yml index f2bc21a..f29a5fe 100644 --- a/site/blueprints/sections/gallery_content_introduction.yml +++ b/site/blueprints/sections/gallery_content_introduction.yml @@ -1,19 +1,19 @@ type: fields fields: - text: - label: - en: Introduction text - fr: Texte d'introduction - type: textarea - size: medium - buttons: - - headlines - - '|' - - bold - - italic - - '|' - - link - - email - - '|' - - ul - - '|' + text: + label: + en: Introduction text + fr: Texte d'introduction + type: textarea + size: medium + buttons: + - headlines + - '|' + - bold + - italic + - '|' + - link + - email + - '|' + - ul + - '|' diff --git a/site/blueprints/sections/generic_seo_metadata.yml b/site/blueprints/sections/generic_seo_metadata.yml index 28365ec..d7c9121 100644 --- a/site/blueprints/sections/generic_seo_metadata.yml +++ b/site/blueprints/sections/generic_seo_metadata.yml @@ -1,43 +1,43 @@ type: fields fields: - meta_description: - label: - en: Meta description - fr: Méta description - type: textarea - size: small - buttons: false - help: - en: "Short description of the page displayed by search engines and social networks (recommended maximum length: 160 characters). Home page meta description is used if this field is empty." - fr: "Courte description de la page affichée par les moteurs de recherche et les réseaux sociaux (taille maximale conseillée : 160 caractères). La méta description de la page d'accueil est utilisée si ce champ est vide." - width: 3/4 - gap: - type: gap - width: 1/4 - meta_image: - label: - en: Meta image - fr: Méta image - type: image-clip - query: page.images - uploads: image - layout: cards - image: - cover: true - back: white - multiple: false - clip: - minwidth: 1200 - minheight: 675 - ratio: fixed - help: - en: "Image displayed by social networks (format: JPEG or PNG). Home page meta image is used if this field is empty." - fr: "Image affichée par les réseaux sociaux (format : JPEG ou PNG). La méta image de la page d'accueil est utilisée si ce champ est vide." - width: 1/4 - # Hidden fields - og_type: - type: hidden - default: article - twitter_card_type: - type: hidden - default: summary_large_image + meta_description: + label: + en: Meta description + fr: Méta description + type: textarea + size: small + buttons: false + help: + en: "Short description of the page displayed by search engines and social networks (recommended maximum length: 160 characters). Home page meta description is used if this field is empty." + fr: "Courte description de la page affichée par les moteurs de recherche et les réseaux sociaux (taille maximale conseillée : 160 caractères). La méta description de la page d'accueil est utilisée si ce champ est vide." + width: 3/4 + gap: + type: gap + width: 1/4 + meta_image: + label: + en: Meta image + fr: Méta image + type: image-clip + query: page.images + uploads: image + layout: cards + image: + cover: true + back: white + multiple: false + clip: + minwidth: 1200 + minheight: 675 + ratio: fixed + help: + en: "Image displayed by social networks (format: JPEG or PNG). Home page meta image is used if this field is empty." + fr: "Image affichée par les réseaux sociaux (format : JPEG ou PNG). La méta image de la page d'accueil est utilisée si ce champ est vide." + width: 1/4 + # Hidden fields + og_type: + type: hidden + default: article + twitter_card_type: + type: hidden + default: summary_large_image diff --git a/site/blueprints/sections/home_content_background_image.yml b/site/blueprints/sections/home_content_background_image.yml index 7b1ac27..fce5978 100644 --- a/site/blueprints/sections/home_content_background_image.yml +++ b/site/blueprints/sections/home_content_background_image.yml @@ -1,6 +1,6 @@ headline: - en: Background image - fr: Image de fond + en: Background image + fr: Image de fond type: files template: image min: 1 @@ -8,5 +8,5 @@ max: 1 layout: cards size: medium image: - ratio: 1/1 - back: white + ratio: 1/1 + back: white diff --git a/site/blueprints/sections/home_content_contact.yml b/site/blueprints/sections/home_content_contact.yml index 81c3713..dfe4b6c 100644 --- a/site/blueprints/sections/home_content_contact.yml +++ b/site/blueprints/sections/home_content_contact.yml @@ -1,18 +1,18 @@ headline: - en: Contact and social networks - fr: Contact et réseaux sociaux + en: Contact and social networks + fr: Contact et réseaux sociaux type: fields fields: - email: - label: - en: Email - fr: Adresse e-mail - type: email - required: true - instagram: - type: url - label: - en: Instagram account - fr: Compte Instagram - icon: instagram - required: true + email: + label: + en: Email + fr: Adresse e-mail + type: email + required: true + instagram: + type: url + label: + en: Instagram account + fr: Compte Instagram + icon: instagram + required: true diff --git a/site/blueprints/sections/home_seo_metadata.yml b/site/blueprints/sections/home_seo_metadata.yml index a7219c1..a37ea1d 100644 --- a/site/blueprints/sections/home_seo_metadata.yml +++ b/site/blueprints/sections/home_seo_metadata.yml @@ -1,44 +1,44 @@ type: fields fields: - meta_description: - label: - en: Meta description - fr: Méta description - type: textarea - size: small - buttons: false - required: true - help: - en: "Short description of the page displayed by search engines and social networks (recommended maximum length: 160 characters)." - fr: "Courte description de la page affichée par les moteurs de recherche et les réseaux sociaux (taille maximale conseillée : 160 caractères)." - width: 3/4 - gap: - type: gap - width: 1/4 - meta_image: - label: - en: Meta image - fr: Méta image - type: image-clip - query: page.images - layout: cards - image: - cover: true - back: white - multiple: false - required: true - clip: - minwidth: 1200 - minheight: 675 - ratio: fixed - help: - en: "Image displayed by social networks (format: JPEG or PNG)." - fr: "Image affichée par les réseaux sociaux (format : JPEG ou PNG)." - width: 1/4 - # Hidden fields - og_type: - type: hidden - default: website - twitter_card_type: - type: hidden - default: summary_large_image + meta_description: + label: + en: Meta description + fr: Méta description + type: textarea + size: small + buttons: false + required: true + help: + en: "Short description of the page displayed by search engines and social networks (recommended maximum length: 160 characters)." + fr: "Courte description de la page affichée par les moteurs de recherche et les réseaux sociaux (taille maximale conseillée : 160 caractères)." + width: 3/4 + gap: + type: gap + width: 1/4 + meta_image: + label: + en: Meta image + fr: Méta image + type: image-clip + query: page.images + layout: cards + image: + cover: true + back: white + multiple: false + required: true + clip: + minwidth: 1200 + minheight: 675 + ratio: fixed + help: + en: "Image displayed by social networks (format: JPEG or PNG)." + fr: "Image affichée par les réseaux sociaux (format : JPEG ou PNG)." + width: 1/4 + # Hidden fields + og_type: + type: hidden + default: website + twitter_card_type: + type: hidden + default: summary_large_image diff --git a/site/blueprints/sections/site_content_galleries.yml b/site/blueprints/sections/site_content_galleries.yml index adb277c..ec07e17 100644 --- a/site/blueprints/sections/site_content_galleries.yml +++ b/site/blueprints/sections/site_content_galleries.yml @@ -1,6 +1,6 @@ headline: - en: Galleries - fr: Galeries + en: Galleries + fr: Galeries type: pages template: gallery min: 2 @@ -8,7 +8,7 @@ max: 4 layout: cards size: small image: - ratio: 1/1 - cover: true - query: page.images.template('artwork').sortBy('sort').first - back: white + ratio: 1/1 + cover: true + query: page.images.template('artwork').sortBy('sort').first + back: white diff --git a/site/blueprints/sections/site_content_pages.yml b/site/blueprints/sections/site_content_pages.yml index 51d6930..15863d8 100644 --- a/site/blueprints/sections/site_content_pages.yml +++ b/site/blueprints/sections/site_content_pages.yml @@ -1,14 +1,14 @@ headline: - en: Pages - fr: Pages + en: Pages + fr: Pages type: pages templates: - - home - - biography + - home + - biography sortBy: title asc create: false layout: cardlets image: - cover: true - query: page.images.template('image').first - back: white + cover: true + query: page.images.template('image').first + back: white diff --git a/site/blueprints/site.yml b/site/blueprints/site.yml index 8743603..b7b6729 100644 --- a/site/blueprints/site.yml +++ b/site/blueprints/site.yml @@ -1,6 +1,6 @@ title: - en: Website - fr: Site web + en: Website + fr: Site web tabs: - content: tabs/site_content - analytics: tabs/site_analytics + content: tabs/site_content + analytics: tabs/site_analytics diff --git a/site/blueprints/tabs/biography_content.yml b/site/blueprints/tabs/biography_content.yml index aee713a..fcc1e9e 100644 --- a/site/blueprints/tabs/biography_content.yml +++ b/site/blueprints/tabs/biography_content.yml @@ -1,6 +1,6 @@ label: - en: Content - fr: Contenu + en: Content + fr: Contenu icon: text sections: - presentation: sections/biography_content_presentation + presentation: sections/biography_content_presentation diff --git a/site/blueprints/tabs/biography_seo.yml b/site/blueprints/tabs/biography_seo.yml index 3483ed9..4c5afb9 100644 --- a/site/blueprints/tabs/biography_seo.yml +++ b/site/blueprints/tabs/biography_seo.yml @@ -1,6 +1,6 @@ label: - en: SEO - fr: Référencement + en: SEO + fr: Référencement icon: search sections: - seo_basic_meta: sections/generic_seo_metadata + seo_basic_meta: sections/generic_seo_metadata diff --git a/site/blueprints/tabs/gallery_content.yml b/site/blueprints/tabs/gallery_content.yml index 78fb6d0..0dd4d7a 100644 --- a/site/blueprints/tabs/gallery_content.yml +++ b/site/blueprints/tabs/gallery_content.yml @@ -1,7 +1,7 @@ label: - en: Content - fr: Contenu + en: Content + fr: Contenu icon: text sections: - introduction: sections/gallery_content_introduction - artworks: sections/gallery_content_artworks + introduction: sections/gallery_content_introduction + artworks: sections/gallery_content_artworks diff --git a/site/blueprints/tabs/gallery_seo.yml b/site/blueprints/tabs/gallery_seo.yml index 3483ed9..4c5afb9 100644 --- a/site/blueprints/tabs/gallery_seo.yml +++ b/site/blueprints/tabs/gallery_seo.yml @@ -1,6 +1,6 @@ label: - en: SEO - fr: Référencement + en: SEO + fr: Référencement icon: search sections: - seo_basic_meta: sections/generic_seo_metadata + seo_basic_meta: sections/generic_seo_metadata diff --git a/site/blueprints/tabs/home_content.yml b/site/blueprints/tabs/home_content.yml index 869f586..8810fb0 100644 --- a/site/blueprints/tabs/home_content.yml +++ b/site/blueprints/tabs/home_content.yml @@ -1,11 +1,11 @@ label: - en: Content - fr: Contenu + en: Content + fr: Contenu icon: text columns: - - width: 1/2 - sections: - background_image: sections/home_content_background_image - - width: 1/2 - sections: - contact: sections/home_content_contact + - width: 1/2 + sections: + background_image: sections/home_content_background_image + - width: 1/2 + sections: + contact: sections/home_content_contact diff --git a/site/blueprints/tabs/home_seo.yml b/site/blueprints/tabs/home_seo.yml index 22db6c9..b48b371 100644 --- a/site/blueprints/tabs/home_seo.yml +++ b/site/blueprints/tabs/home_seo.yml @@ -1,6 +1,6 @@ label: - en: SEO - fr: Référencement + en: SEO + fr: Référencement icon: search sections: - seo_basic_meta: sections/home_seo_metadata + seo_basic_meta: sections/home_seo_metadata diff --git a/site/blueprints/tabs/site_analytics.yml b/site/blueprints/tabs/site_analytics.yml index c7beb6b..9c6d80c 100644 --- a/site/blueprints/tabs/site_analytics.yml +++ b/site/blueprints/tabs/site_analytics.yml @@ -1,15 +1,15 @@ label: - en: Analytics - fr: Audience + en: Analytics + fr: Audience icon: chart columns: - - width: 1/4 - sticky: true - sections: - sidebar: - type: matomo-sidebar - link: false - - width: 3/4 - sections: - main: - type: matomo-main + - width: 1/4 + sticky: true + sections: + sidebar: + type: matomo-sidebar + link: false + - width: 3/4 + sections: + main: + type: matomo-main diff --git a/site/blueprints/tabs/site_content.yml b/site/blueprints/tabs/site_content.yml index 9e5b5da..88d36f8 100644 --- a/site/blueprints/tabs/site_content.yml +++ b/site/blueprints/tabs/site_content.yml @@ -1,12 +1,12 @@ label: - en: Website - fr: Site web + en: Website + fr: Site web icon: home columns: - - width: 1/4 - sticky: true - sections: - pages: sections/site_content_pages - - width: 3/4 - sections: - galleries: sections/site_content_galleries + - width: 1/4 + sticky: true + sections: + pages: sections/site_content_pages + - width: 3/4 + sections: + galleries: sections/site_content_galleries diff --git a/site/blueprints/users/admin.yml b/site/blueprints/users/admin.yml index b4f53bb..0d66539 100644 --- a/site/blueprints/users/admin.yml +++ b/site/blueprints/users/admin.yml @@ -1,15 +1,15 @@ title: - en: Administrator - fr: Administrateur·ice + en: Administrator + fr: Administrateur·ice description: - en: The Administrator has all rights - fr: L'Administrateur·ice dispose de tous les droits + en: The Administrator has all rights + fr: L'Administrateur·ice dispose de tous les droits sections: - info: - headline: - en: Website - fr: Site internet - theme: none - width: 1/2 - text: | - (link: https://paulnicoue.com text: paulnicoue.com target: _blank) + info: + headline: + en: Website + fr: Site internet + theme: none + width: 1/2 + text: | + (link: https://paulnicoue.com text: paulnicoue.com target: _blank) diff --git a/site/blueprints/users/editor.yml b/site/blueprints/users/editor.yml index 8c7d8d2..d114622 100644 --- a/site/blueprints/users/editor.yml +++ b/site/blueprints/users/editor.yml @@ -1,29 +1,28 @@ title: - en: Editor - fr: Éditeur·ice + en: Editor + fr: Éditeur·ice description: - en: The Editor can create and edit pages - fr: L'éditeur·ice peut créer et modifier des pages + en: The Editor can create and edit pages + fr: L'éditeur·ice peut créer et modifier des pages permissions: - access: - settings: false - languages: - create: false - delete: false - site: - changeTitle: false - user: - changeRole: false - delete: false - users: - changeEmail: false - changeLanguage: false - changeName: false - changePassword: false - changeRole: false - create: false - delete: false - update: false - + access: + settings: false + languages: + create: false + delete: false + site: + changeTitle: false + user: + changeRole: false + delete: false + users: + changeEmail: false + changeLanguage: false + changeName: false + changePassword: false + changeRole: false + create: false + delete: false + update: false sections: - info: false + info: false