From 98499d98decc3645393780bce6cf8edc821e0f6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20Nicou=C3=A9?= Date: Tue, 6 Sep 2022 09:47:52 +0200 Subject: [PATCH] Edit yaml files indentation style --- .editorconfig | 3 + site/blueprints/files/full_screen_image.yml | 52 ++++----- site/blueprints/pages/error.yml | 6 +- site/blueprints/pages/exhibitions.yml | 32 +++--- site/blueprints/pages/gallery.yml | 32 +++--- .../sections/exhibitions_content_contact.yml | 40 +++---- .../exhibitions_content_exhibitions.yml | 102 +++++++++--------- .../sections/exhibitions_seo_metadata.yml | 84 +++++++-------- .../sections/gallery_content_images.yml | 8 +- .../sections/generic_seo_metadata.yml | 82 +++++++------- .../sections/site_content_pages.yml | 16 +-- site/blueprints/site.yml | 8 +- site/blueprints/tabs/exhibitions_content.yml | 10 +- site/blueprints/tabs/exhibitions_seo.yml | 6 +- site/blueprints/tabs/gallery_content.yml | 6 +- site/blueprints/tabs/gallery_seo.yml | 6 +- site/blueprints/tabs/site_analytics.yml | 24 ++--- site/blueprints/tabs/site_content.yml | 6 +- site/blueprints/users/admin.yml | 25 +++-- site/blueprints/users/editor.yml | 49 +++++---- 20 files changed, 299 insertions(+), 298 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/full_screen_image.yml b/site/blueprints/files/full_screen_image.yml index 55fc80f..6b3aa24 100644 --- a/site/blueprints/files/full_screen_image.yml +++ b/site/blueprints/files/full_screen_image.yml @@ -1,29 +1,29 @@ 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." - logo_color: - label: - en: Logo color - fr: Couleur du logo - type: select - options: - black: - en: Black - fr: Noir - white: - en: White - fr: Blanc - default: black - help: - en: "Favor a black logo for a light image, and a white logo for a dark image." - fr: "Privilégier un logo noir pour une image claire, et un logo blanc pour une image sombre." - width: 1/4 + 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." + logo_color: + label: + en: Logo color + fr: Couleur du logo + type: select + options: + black: + en: Black + fr: Noir + white: + en: White + fr: Blanc + default: black + help: + en: "Favor a black logo for a light image, and a white logo for a dark image." + fr: "Privilégier un logo noir pour une image claire, et un logo blanc pour une image sombre." + width: 1/4 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/exhibitions.yml b/site/blueprints/pages/exhibitions.yml index a85766e..46b8df7 100644 --- a/site/blueprints/pages/exhibitions.yml +++ b/site/blueprints/pages/exhibitions.yml @@ -1,21 +1,21 @@ title: - en: Home - fr: Accueil + en: Home + fr: Accueil icon: list-bullet status: - draft: true - listed: true + draft: true + listed: 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/exhibitions_content - seo: tabs/exhibitions_seo + content: tabs/exhibitions_content + seo: tabs/exhibitions_seo diff --git a/site/blueprints/pages/gallery.yml b/site/blueprints/pages/gallery.yml index c55bafe..1dffee7 100644 --- a/site/blueprints/pages/gallery.yml +++ b/site/blueprints/pages/gallery.yml @@ -1,21 +1,21 @@ title: - en: Gallery - fr: Galerie + en: Gallery + fr: Galerie icon: images status: - draft: true - listed: true + draft: true + listed: 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/gallery_content - seo: tabs/gallery_seo + content: tabs/gallery_content + seo: tabs/gallery_seo diff --git a/site/blueprints/sections/exhibitions_content_contact.yml b/site/blueprints/sections/exhibitions_content_contact.yml index c8fb4fa..513ad8e 100644 --- a/site/blueprints/sections/exhibitions_content_contact.yml +++ b/site/blueprints/sections/exhibitions_content_contact.yml @@ -1,22 +1,22 @@ type: fields fields: - contact_line: - type: line - email: - label: - en: Email - fr: Adresse e-mail - type: email - required: true - width: 1/2 - gap: - type: gap - width: 1/2 - instagram: - type: url - label: - en: Instagram account - fr: Compte Instagram - icon: instagram - required: true - width: 1/2 + contact_line: + type: line + email: + label: + en: Email + fr: Adresse e-mail + type: email + required: true + width: 1/2 + gap: + type: gap + width: 1/2 + instagram: + type: url + label: + en: Instagram account + fr: Compte Instagram + icon: instagram + required: true + width: 1/2 diff --git a/site/blueprints/sections/exhibitions_content_exhibitions.yml b/site/blueprints/sections/exhibitions_content_exhibitions.yml index 3531ead..cce448d 100644 --- a/site/blueprints/sections/exhibitions_content_exhibitions.yml +++ b/site/blueprints/sections/exhibitions_content_exhibitions.yml @@ -1,57 +1,57 @@ headline: - en: Exhibitions - fr: Expositions + en: Exhibitions + fr: Expositions type: fields fields: - exhibitions: - label: - en: Exhibitions - fr: Expositions - type: structure - prepend: true - sortable: true - required: true - fields: - url: - label: - en: URL - fr: URL - type: url - width: 2/4 - external_link: - label: - en: External link - fr: Lien externe - type: toggle - text: - - - en: 'No' - fr: Non - - - en: 'Yes' - fr: Oui - width: 1/4 - background_color: - when: - external_link: false - label: - en: Background color - fr: Couleur de fond - type: select - options: - feldgrau: Feldgrau - white: - en: White - fr: Blanc - default: feldgrau - width: 1/4 - columns: - url: - width: 2/4 - external_link: - width: 1/4 - background_color: - width: 1/4 + exhibitions: + label: + en: Exhibitions + fr: Expositions + type: structure + prepend: true + sortable: true + required: true + fields: + url: + label: + en: URL + fr: URL + type: url + width: 2/4 + external_link: + label: + en: External link + fr: Lien externe + type: toggle + text: + - + en: 'No' + fr: Non + - + en: 'Yes' + fr: Oui + width: 1/4 + background_color: + when: + external_link: false + label: + en: Background color + fr: Couleur de fond + type: select + options: + feldgrau: Feldgrau + white: + en: White + fr: Blanc + default: feldgrau + width: 1/4 + columns: + url: + width: 2/4 + external_link: + width: 1/4 + background_color: + width: 1/4 diff --git a/site/blueprints/sections/exhibitions_seo_metadata.yml b/site/blueprints/sections/exhibitions_seo_metadata.yml index 5f2eae5..8e2c8a0 100644 --- a/site/blueprints/sections/exhibitions_seo_metadata.yml +++ b/site/blueprints/sections/exhibitions_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/gallery_content_images.yml b/site/blueprints/sections/gallery_content_images.yml index 072c90c..4f6fb17 100644 --- a/site/blueprints/sections/gallery_content_images.yml +++ b/site/blueprints/sections/gallery_content_images.yml @@ -1,6 +1,6 @@ headline: - en: Artworks - fr: Œuvres + en: Artworks + fr: Œuvres type: files template: full_screen_image min: 2 @@ -8,5 +8,5 @@ layout: cards size: small limit: 60 image: - ratio: 1/1 - back: white + ratio: 1/1 + back: white 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/site_content_pages.yml b/site/blueprints/sections/site_content_pages.yml index efa9acd..daa59af 100644 --- a/site/blueprints/sections/site_content_pages.yml +++ b/site/blueprints/sections/site_content_pages.yml @@ -1,16 +1,16 @@ headline: - en: Pages - fr: Pages + en: Pages + fr: Pages type: pages templates: - - exhibitions - - gallery + - exhibitions + - gallery sortBy: title desc create: false layout: cards size: small image: - ratio: 1/1 - cover: true - query: page.images.template('full_screen_image').first - back: white + ratio: 1/1 + cover: true + query: page.images.template('full_screen_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/exhibitions_content.yml b/site/blueprints/tabs/exhibitions_content.yml index 0ff98f1..f8e6a15 100644 --- a/site/blueprints/tabs/exhibitions_content.yml +++ b/site/blueprints/tabs/exhibitions_content.yml @@ -1,9 +1,9 @@ label: - en: Content - fr: Contenu + en: Content + fr: Contenu icon: text sections: - exhibitions: sections/exhibitions_content_exhibitions - contact: sections/exhibitions_content_contact + exhibitions: sections/exhibitions_content_exhibitions + contact: sections/exhibitions_content_contact - + diff --git a/site/blueprints/tabs/exhibitions_seo.yml b/site/blueprints/tabs/exhibitions_seo.yml index 62e1746..675c3d8 100644 --- a/site/blueprints/tabs/exhibitions_seo.yml +++ b/site/blueprints/tabs/exhibitions_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/exhibitions_seo_metadata + seo_basic_meta: sections/exhibitions_seo_metadata diff --git a/site/blueprints/tabs/gallery_content.yml b/site/blueprints/tabs/gallery_content.yml index 96fd86d..63d8765 100644 --- a/site/blueprints/tabs/gallery_content.yml +++ b/site/blueprints/tabs/gallery_content.yml @@ -1,6 +1,6 @@ label: - en: Content - fr: Contenu + en: Content + fr: Contenu icon: text sections: - artworks: sections/gallery_content_images + artworks: sections/gallery_content_images 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/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 e773b40..0faa11b 100644 --- a/site/blueprints/tabs/site_content.yml +++ b/site/blueprints/tabs/site_content.yml @@ -1,6 +1,6 @@ label: - en: Website - fr: Site web + en: Website + fr: Site web icon: home sections: - pages: sections/site_content_pages + pages: sections/site_content_pages diff --git a/site/blueprints/users/admin.yml b/site/blueprints/users/admin.yml index 492ff2e..0d66539 100644 --- a/site/blueprints/users/admin.yml +++ b/site/blueprints/users/admin.yml @@ -1,16 +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