From 0ae2ed41b3018e42dad34101b3309e9312eb6d0e Mon Sep 17 00:00:00 2001 From: Thomas Schwery Date: Thu, 21 May 2020 13:54:12 +0200 Subject: [PATCH] Prettier configuration and reformatting --- .gitignore | 3 +++ .prettierrc.yaml | 15 +++++++++++++++ .vscode/settings.json | 10 ++++++++++ site/content/_index.md | 6 +++--- site/content/activites.md | 7 +++---- site/content/contact.md | 4 ++-- site/content/entrainements.md | 7 ++++--- site/content/post/2019-concours-carnaval.md | 6 +++--- site/content/post/2020-02-ag2020.md | 4 ++-- site/content/post/2020-03-covid.md | 4 ++-- site/content/post/2020-03-initiation.md | 5 ++--- site/content/post/2020-05-fita.md | 4 ++-- site/content/post/_index.md | 5 ++--- site/content/post/ag2019.md | 5 +++-- 14 files changed, 56 insertions(+), 29 deletions(-) create mode 100644 .prettierrc.yaml create mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index 4cce37f..7384a71 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ site/public +site/aws-env/ +old-site/ +photos-diverses/ diff --git a/.prettierrc.yaml b/.prettierrc.yaml new file mode 100644 index 0000000..a112e3a --- /dev/null +++ b/.prettierrc.yaml @@ -0,0 +1,15 @@ +singleQuote: true +useTabs: false +printWidth: 120 +tabWidth: 4 +arrowParens: always +bracketSpacing: true +quoteProps: consistent +semi: true +overrides: + - files: + - '**.yaml' + - '**.yml' + options: + tabWidth: 2 + proseWrap: never diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..7f6e356 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,10 @@ +{ + "cSpell.language": "en,fr", + "files.eol": "\n", + "files.insertFinalNewline": true, + "files.trimFinalNewlines": true, + "editor.renderWhitespace": "all", + "editor.formatOnPaste": true, + "editor.formatOnSave": true, + "editor.defaultFormatter": "esbenp.prettier-vscode" +} diff --git a/site/content/_index.md b/site/content/_index.md index 09de1e1..318aae7 100644 --- a/site/content/_index.md +++ b/site/content/_index.md @@ -1,5 +1,5 @@ --- -title: "Les Archers du Bisse" +title: 'Les Archers du Bisse' featured_image: '/images/banner.jpg' type: page --- @@ -34,8 +34,8 @@ ou encore films qui laissent une part belle au tir à l'arc. ## Le Club -Le club a été fondé en 1991 à Montana sous le nom des *Archers des 2 Contrées*, -puis de l'*Arc-Club Crans-Montana* afin de permettre à tous les tireurs du +Le club a été fondé en 1991 à Montana sous le nom des _Archers des 2 Contrées_, +puis de l'_Arc-Club Crans-Montana_ afin de permettre à tous les tireurs du Haut-Plateau de se retrouver. Après s'être entraînés de longues années en station, les archers décident diff --git a/site/content/activites.md b/site/content/activites.md index 485022c..19e19f9 100644 --- a/site/content/activites.md +++ b/site/content/activites.md @@ -1,10 +1,10 @@ --- -title: "Activités" -featured_image: "images/banner4.jpg" +title: 'Activités' +featured_image: 'images/banner4.jpg' omit_header_text: true type: page menu: - main: {} + main: {} --- En plus des entraînements réguliers, le club organise tout au long de l'année @@ -30,4 +30,3 @@ des règles, des cibles ainsi que des contraintes différentes. {{< figure src="/images/activites_concours_5.jpg" >}} {{< figure src="/images/activites_concours_6.jpg" >}} {{< figure src="/images/activites_concours_7.jpg" >}} - diff --git a/site/content/contact.md b/site/content/contact.md index 5d43ac1..ef41830 100644 --- a/site/content/contact.md +++ b/site/content/contact.md @@ -1,10 +1,10 @@ --- title: Contact -featured_image: "images/banner2.jpg" +featured_image: 'images/banner2.jpg' omit_header_text: true type: page menu: - main: {} + main: {} --- N'hésitez pas à nous contacter que ce soit pour essayer ce sport pour la diff --git a/site/content/entrainements.md b/site/content/entrainements.md index b5f2cdd..42bbcde 100644 --- a/site/content/entrainements.md +++ b/site/content/entrainements.md @@ -1,11 +1,12 @@ --- -title: "Entrainements" -featured_image: "images/banner4.jpg" +title: 'Entrainements' +featured_image: 'images/banner4.jpg' omit_header_text: true type: page menu: - main: {} + main: {} --- + ## Tir en salle Les entraînements en salle ont lieu tous les mercredis soirs dès 19h00 à diff --git a/site/content/post/2019-concours-carnaval.md b/site/content/post/2019-concours-carnaval.md index c693bfc..66393b1 100644 --- a/site/content/post/2019-concours-carnaval.md +++ b/site/content/post/2019-concours-carnaval.md @@ -1,13 +1,13 @@ --- date: 2019-03-13 20:00:00 -tags: ["concours"] -title: "Concours de Carnaval 2019" +tags: ['concours'] +title: 'Concours de Carnaval 2019' --- Merci à Christophe pour l'organisation du concours de Carnaval 2019, durant lequel nous avons pu prouver nos talents en tirant sur des cibles mobiles ! Merci également à tous les participants ayant joué le jeu et qui se sont -déguisés dans le thème *Animal*. +déguisés dans le thème _Animal_. {{< gallery dir="/images/2019-carnaval" >}} diff --git a/site/content/post/2020-02-ag2020.md b/site/content/post/2020-02-ag2020.md index 067e171..871aff0 100644 --- a/site/content/post/2020-02-ag2020.md +++ b/site/content/post/2020-02-ag2020.md @@ -1,7 +1,7 @@ --- date: 2020-02-12 00:00:00 -tags: ["ag"] -title: "Assemblée Générale 2020" +tags: ['ag'] +title: 'Assemblée Générale 2020' --- L'assemblée générale 2020 du club a eu lieu le 12 février 2020 à 20h à diff --git a/site/content/post/2020-03-covid.md b/site/content/post/2020-03-covid.md index 4c016a7..8636175 100644 --- a/site/content/post/2020-03-covid.md +++ b/site/content/post/2020-03-covid.md @@ -1,7 +1,7 @@ --- date: 2020-03-12 00:00:00 -tags: ["salle"] -title: "COVID-19" +tags: ['salle'] +title: 'COVID-19' --- Suite à l'épidémie de COVID-19, les entraînements sont interrompus et la diff --git a/site/content/post/2020-03-initiation.md b/site/content/post/2020-03-initiation.md index dd0601b..33f2a33 100644 --- a/site/content/post/2020-03-initiation.md +++ b/site/content/post/2020-03-initiation.md @@ -1,7 +1,7 @@ --- date: 2020-03-04 20:00:00 -tags: ["initiation"] -title: "Initiation Écoles de Montana-Village" +tags: ['initiation'] +title: 'Initiation Écoles de Montana-Village' --- Le club a reçu les enfants des écoles de Montana-Village afin de leur @@ -11,4 +11,3 @@ après-midi. {{< gallery dir="/images/2020-03-initiation" >}} Merci à Barbara, Lénaïc et Eloan pour avoir organisé et encadré cet après-midi ! - diff --git a/site/content/post/2020-05-fita.md b/site/content/post/2020-05-fita.md index 668fdab..0d6a24d 100644 --- a/site/content/post/2020-05-fita.md +++ b/site/content/post/2020-05-fita.md @@ -1,7 +1,7 @@ --- date: 2020-05-13 20:00:00 -tags: ["travaux"] -title: "Terrain FITA" +tags: ['travaux'] +title: 'Terrain FITA' --- Merci à tous ceux qui ont pu venir nous donner un coup de main pour la mise en place de notre nouveau terrain FITA à la Crête de Vaas. diff --git a/site/content/post/_index.md b/site/content/post/_index.md index 4f7ff30..cd0fdf2 100644 --- a/site/content/post/_index.md +++ b/site/content/post/_index.md @@ -1,6 +1,5 @@ --- -title: "Nouvelles du Club" -featured_image: "images/banner3.jpg" +title: 'Nouvelles du Club' +featured_image: 'images/banner3.jpg' omit_header_text: true --- - diff --git a/site/content/post/ag2019.md b/site/content/post/ag2019.md index c8e1753..ead6811 100644 --- a/site/content/post/ag2019.md +++ b/site/content/post/ag2019.md @@ -1,7 +1,8 @@ --- date: 2019-02-13 20:00:00 -tags: ["ag"] -title: "Assemblée Générale 2019" +tags: ['ag'] +title: 'Assemblée Générale 2019' --- + L'assemblée générale 2019 du club aura lieu le 13 février 2019 à 20h à la salle d'entraînement.