Compare commits

...

33 Commits

Author SHA1 Message Date
dc6e261895 feat(CR): Ajout du dernier PV de conseil
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2025-06-05 00:09:23 +02:00
e68ffcf65f feat: Ajout des derniers PV de conseil
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build is passing
2025-04-08 23:30:27 +02:00
6cc65c1ff2 feat: Modification des tailles des images et de l'affichage de la vignette mise en avant
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2025-04-08 10:42:34 +02:00
36f1915d86 feat: Ajout du bulleton municipal 2025
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2025-03-25 11:14:29 +01:00
4ce0a04f96 feat: Ajout des articles mise en avant
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2025-03-25 10:56:53 +01:00
a7abcd5b4c feat: Ajout des derniers CR
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build is passing
2025-03-17 17:27:10 +01:00
6a8a86114e feat: Ajout du calendrier 2025 des ordures menagères
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build is passing
2025-01-31 15:08:04 +01:00
e19161e873 feat: Suppression des associations dans les sources
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2024-12-19 16:58:46 +01:00
56d7fd04f7 feat: Optimisation de la récupération des sources
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2024-12-11 14:39:12 +01:00
f371af27f6 feat: Mise à jour du script de déploiement
All checks were successful
continuous-integration/drone/push Build is passing
2024-12-11 14:33:45 +01:00
499b222080 feat: Ajout des derniers CR
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2024-11-07 11:34:29 +01:00
51bde5286f feat: Ajout des derniers conseils
All checks were successful
continuous-integration/drone Build is passing
continuous-integration/drone/push Build is passing
2024-10-22 15:21:59 +02:00
068adabe33 feat: Mise à jour de la source du submodule
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2024-09-02 12:32:31 +02:00
47acf1774d feat: Ajout des derniers résumés et CR des conseils municipaux
All checks were successful
continuous-integration/drone Build is passing
continuous-integration/drone/push Build is passing
2024-07-24 12:07:19 +02:00
baf8c3f751 feat: Suppression des champs auteur lorsqu'ils sont vides
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2024-06-24 17:23:21 +02:00
89843f2353 feat: Ajout des liens entre les évènements et les associations
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2024-06-24 17:12:07 +02:00
16c0de360f feat: Ajout du texte des associations en prod
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2024-06-17 14:26:26 +02:00
c2baa7c264 chore: Mise à jour de Hugo
All checks were successful
continuous-integration/drone Build is passing
continuous-integration/drone/push Build is passing
2024-05-07 16:59:25 +02:00
dc1713cd71 feat: Mise à jour des tailles d'image
Some checks failed
continuous-integration/drone/push Build is failing
2024-05-07 16:41:34 +02:00
da5e693f22 feat: Ajout du dernier bulletin
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build is passing
2024-04-19 14:59:18 +02:00
8040f62eb0 fix: Les sous menu était caché
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2024-04-03 09:00:15 +02:00
175aac23e7 fix: Vérifie la section avec InSection
All checks were successful
continuous-integration/drone/push Build is passing
2024-04-02 23:29:10 +02:00
99722d5857 feat: Modification des images dans les actualités
All checks were successful
continuous-integration/drone/push Build is passing
2024-04-02 23:18:38 +02:00
dc26afe2cb feat: Resynchronisation automatique des associations
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2024-02-29 11:44:24 +01:00
a33dfc9322 fix: Mise à jour de drone
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2024-02-19 15:07:12 +01:00
91480a8fdd feat: Mise à jour de la largeur du contenu
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2024-02-19 15:04:55 +01:00
870fada7fc feat: Ajout des sources dans le cache
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2024-02-19 15:00:54 +01:00
ae17bfc36a feat: Optimise le clone dans la CI
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2024-02-19 12:33:50 +01:00
04c6bfcf60 feat: Mise à jour des galleries
All checks were successful
continuous-integration/drone/push Build is passing
2024-02-19 12:24:12 +01:00
aa8cb94a29 feat: Mise à jour du cache dans drone
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2024-02-19 11:48:11 +01:00
aad4760cab feat: Modification de l'ordre des bloc
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is passing
2024-01-29 15:30:06 +01:00
1aad5c8c4e feat: Ajout du calendrier 2024 des ordures
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is passing
2024-01-15 09:38:10 +01:00
2f797de1f0 feat: Ajout des derniers conseils
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build was killed
2024-01-09 15:16:28 +01:00
68 changed files with 243 additions and 664 deletions

View File

@ -39,11 +39,22 @@ kind: pipeline
type: docker
name: prod
clone:
disable: true
steps:
- name: install submodule
image: drone/git
- name: clone
image: alpine/git
commands:
- git submodule update --init
- git clone --depth 1 --recursive $DRONE_REPO_LINK .
# volumes:
# - name: source
# path: /drone/src/
# - name: install submodule
# image: drone/git
# commands:
# - git submodule update --init
- name: install npm
image: node:current-alpine
@ -60,10 +71,10 @@ steps:
- node scripts/directus-to-markdown/index.js
- name: build website
image: klakegg/hugo:0.101.0-ext-debian-ci
# volumes:
# - name: hugo-resources
# path: /drone/src/resources
image: hugomods/hugo:base-0.121.1
volumes:
- name: hugo-resources
path: /drone/src/resources
commands:
- hugo --minify --environment production
@ -76,7 +87,7 @@ steps:
- node themes/hugo-theme-lowtech/scripts/typo
- name: deploy
image: klakegg/hugo:0.101.0-ext-debian-ci
image: hugomods/hugo:base-0.121.1
environment:
AWS_ACCESS_KEY_ID:
from_secret: PRODUCTION_AWS_ACCESS_KEY_ID
@ -103,17 +114,31 @@ volumes:
- name: hugo-resources
host:
path: /tmp/drone/cache/weko/cremeaux/resources
- name: source
host:
path: /tmp/drone/cache/weko/cremeaux/source
---
kind: pipeline
type: docker
name: staging
clone:
disable: true
steps:
- name: install submodule
image: drone/git
- name: clone
image: alpine/git
commands:
- git submodule update --init
- git clone --depth 1 --recursive $DRONE_REPO_LINK .
# volumes:
# - name: source
# path: /drone/src/
# - name: install submodule
# image: drone/git
# commands:
# - git submodule update --init
- name: install npm
image: node:current-alpine
@ -127,13 +152,13 @@ steps:
from_secret: DIRECTUS_TOKEN
commands:
- (cd themes/hugo-theme-lowtech && npm i)
- DRAFT=true node scripts/directus-to-markdown/staging.js
- DRAFT=true node scripts/directus-to-markdown/index.js
- name: build website
image: klakegg/hugo:0.101.0-ext-debian-ci
# volumes:
# - name: hugo-resources
# path: /drone/src/resources
image: hugomods/hugo:base-0.121.1
volumes:
- name: hugo-resources
path: /drone/src/resources
commands:
- hugo --minify --buildDrafts --buildFuture --environment staging
@ -146,7 +171,7 @@ steps:
- node themes/hugo-theme-lowtech/scripts/typo
- name: deploy
image: klakegg/hugo:0.101.0-ext-debian-ci
image: hugomods/hugo:base-0.121.1
environment:
AWS_ACCESS_KEY_ID:
from_secret: STAGING_AWS_ACCESS_KEY_ID
@ -162,3 +187,6 @@ volumes:
- name: hugo-resources
host:
path: /tmp/drone/cache/weko/staging.cremeaux/resources
- name: source
host:
path: /tmp/drone/cache/weko/staging.cremeaux/source

2
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "themes/hugo-theme-lowtech"]
path = themes/hugo-theme-lowtech
url = https://git.weko.io/kosssi/hugo-theme-lowtech.git
url = https://git.resilien.fr/kosssi/hugo-theme-lowtech.git

View File

@ -1,12 +1,13 @@
.masonry
column-gap: 30px
column-fill: initial
column-count: 2
@media only screen and (min-width: 1024px)
column-count: 4
column-count: 2
@media only screen and (max-width: 1023px) and (min-width: 768px)
column-count: 3
column-count: 2
@media only screen and (max-width: 767px) and (min-width: 540px)
column-count: 2
@ -32,5 +33,5 @@
img
width: 100%
max-width: 300px
max-width: 600px
margin: 0 auto 1rem

View File

@ -4,6 +4,20 @@
height: 40vh
position: relative
&.actu
background-color: var(--color-green)
height: calc(106px + 4rem + 2rem)
.nav
top: 2rem
@media screen and (max-width: $size-md)
height: calc(86px + 4rem + 2rem)
@media screen and (max-width: $size-sm)
height: calc(86px + 3rem + 2rem)
.nav
top: 1.5rem
&.home
height: 60vh
.hero
@ -30,6 +44,7 @@
right: 0
background-color: var(--color-secondary)
height: $nav-height
z-index: 50
@media screen and (max-width: $size-md)
top: 30px
@ -73,6 +88,9 @@
margin: 0
height: $nav-height
li
padding-bottom: 0
.viemunicipale, .viemunicipale a
color: var(--color-green)
font-weight: bold

View File

@ -79,6 +79,9 @@ li
margin-top: -10vh
min-height: 50vh
.hero
margin: auto
@media screen and (max-width: $size-md)
min-height: inherit
@ -93,7 +96,7 @@ li
margin: 0
padding: 1rem
@media screen and (max-width: $size-xs)
padding: 1rem .5rem
padding: .5rem
.containerGrid
display: flex
@ -162,6 +165,12 @@ li
a
color: white
.actu + #content
margin-top: -4rem
@media screen and (max-width: $size-md)
.container
.nouveautes
border: 1px solid black
padding: 20px
@ -249,7 +258,7 @@ hr
font-size: .9rem
.md
max-width: 650px
max-width: 1024px
margin-left: auto
margin-right: auto
@media screen and (max-width: $size-sm)

View File

@ -28,11 +28,14 @@ $size-news: 100px
width: $size-la-une
height: $size-la-une
@media screen and (max-width: $size-sm)
background: white
width: 100%
overflow: hidden
margin: 0
img
width: 100%
width: auto
margin: 0 auto
max-height: 100%
.details
padding: 20px
background: var(--color-grey)

View File

@ -1,19 +0,0 @@
---
denomination: À Petit Point
title: À Petit Point
description: null
mail: null
telephone: '0477625396'
site: null
facebook: null
bureau:
- denomination: Présidente
prenom: Bénédicte
nom: JOUHANNAUD-DUBOST
telephone: 04 77 62 53 96
- denomination: Trésorière
prenom: Françoise
nom: PETELET
---

View File

@ -1,24 +0,0 @@
---
denomination: Amicale des Donneurs de Sang
title: Amicale des Donneurs de Sang
description: null
mail: null
telephone: null
site: null
facebook: null
bureau:
- denomination: Présidente
prenom: Annie
nom: PONCET
- denomination: Vice-président
prenom: Marcel
nom: PEURIÈRE
- denomination: Vice-président
prenom: Dominique
nom: PEURIÈRE
- denomination: Trésorière
prenom: Denise
nom: CHAUX
---

View File

@ -1,33 +0,0 @@
---
denomination: Amicale des Pompiers
title: Amicale des Pompiers
description: null
mail: amicale.cremeaux@sdis42.fr
telephone: null
site: null
facebook: null
bureau:
- denomination: Président
prenom: Sylvain
nom: CROZET
- denomination: Trésorier
prenom: Nicolas
nom: CHAVALLARD
- denomination: Secrétaire
prenom: Pauline
nom: BADOUARD
- denomination: Vice Trésorier
prenom: Salim
nom: Lachamp
- denomination: Vice secrétaire
prenom: Christophe
nom: Dejob
- denomination: Vice Trésorier
prenom: Salim
nom: Lachamp
- denomination: Vice secrétaire
prenom: Christophe
nom: Dejob
---

View File

@ -1,36 +0,0 @@
---
denomination: Association Bouliste de Crémeaux
title: Association Bouliste de Crémeaux
description: null
mail: null
telephone: null
site: null
facebook: null
bureau:
- denomination: Président
prenom: Daniel
nom: BOST
- denomination: Vice-président
prenom: Élie
nom: BARTHOLLET
- denomination: Secrétaire
prenom: Mathieu
nom: VERNAY
telephone: 06 80 89 70 95
- denomination: Secrétaire adjoint
prenom: Jean-Baptiste
nom: PALABOST
- denomination: Trésorier
prenom: Romain
nom: BENETIÈRE
telephone: 06 68 80 74 68
- denomination: Trésorier Adjoint
prenom: Mathieu
nom: GARNON
- denomination: Référent ESB
prenom: LAURENT
nom: Maurice
telephone: 06 99 06 40 04
---

View File

@ -1,24 +0,0 @@
---
denomination: Association Communale de Chasse Agréée de CREMEAUX
title: Association Communale de Chasse Agréée de CREMEAUX
description: null
mail: null
telephone: null
site: null
facebook: null
bureau:
- denomination: Président
prenom: Jean-Paul
nom: MARCHEBOEUF
- denomination: Secrétaire
prenom: Hugo
nom: BOURDELLE
- denomination: Trésorier
prenom: Pierre
nom: ERVAS
- denomination: Vice-Président
prenom: Philippe
nom: DEBOUT
---

View File

@ -1,32 +0,0 @@
---
denomination: Basket Club Crémeaux
title: Basket Club Crémeaux
description: null
mail: jeremy-muron1@hotmail.fr
telephone: '0689198699'
site: https://club.quomodo.com/bccremeaux
facebook: https://www.facebook.com/bccremeaux
bureau:
- denomination: Président
prenom: Jérémy
nom: MURON
mail: jeremy-muron1@hotmail.fr
telephone: 06 89 19 86 99
- denomination: Vice-présidente
prenom: Clara
nom: PEURIERE
- denomination: Secrétaire
prenom: Aurélie
nom: BOST
- denomination: Vice-secrétaire
prenom: Lucile
nom: BRIERY
- denomination: Trésorier
prenom: Anne
nom: DALBEGUE
- denomination: Vice-trésorière
prenom: Jean
nom: REYNAUD
---

View File

@ -1,24 +0,0 @@
---
denomination: bavARTdâge
title: bavARTdâge
description: null
mail: francoise@lesmursdecouleurs.com
telephone: 06 42 93 57 08
site: null
facebook: null
bureau:
- denomination: Présidente
prenom: Pascale
nom: CÔTE
telephone: '0660354753'
- denomination: Trésorière/ secrétaire bavARTd'âge
prenom: Corine
nom: CHARPILLENNE
- denomination: Intervenante Arts Plastiques
prenom: Françoise
nom: BOUCHAND GIRAUD
mail: francoise@lesmursdecouleurs.com
telephone: '0642935708'
---

View File

@ -1,15 +0,0 @@
---
denomination: 'C.S.C Football '
title: 'C.S.C Football '
description: null
mail: vernay.mathieu@orange.fr
telephone: 06 80 89 70 95
site: http://www.cscremeaux.fr
facebook: https://www.facebook.com/profile.php?id=100028875266753
bureau:
- denomination: Co-président
prenom: Mathieu
nom: VERNAY
---

View File

@ -1,31 +0,0 @@
---
denomination: Club Rencontres et Loisirs
title: Club Rencontres et Loisirs
description: null
mail: null
telephone: null
site: http://cremeauxfaitsoncinema.over-blog.com/
facebook: >-
https://www.facebook.com/Club-Rencontres-Et-Loisirs-De-Cremeaux-117625143401192/
bureau:
- denomination: Co-président
prenom: Daniel
nom: MAZUIR
- denomination: Co-président
prenom: Robert
nom: CHASSIN
- denomination: Trésorier
prenom: Jean-Michel
nom: MANGOT
- denomination: Trésorière adjointe
prenom: Suzanne
nom: POYET
- denomination: Secrétaire
prenom: Annie
nom: PONCET
- denomination: Secrétaire adjointe
prenom: Marie-Claire
nom: MAZUIR
---

View File

@ -1,33 +0,0 @@
---
denomination: Comité des Fêtes
title: Comité des Fêtes
description: null
mail: comitedesfetes.cremeaux@yahoo.fr
telephone: null
site: null
facebook: https://www.facebook.com/comitedesfetesdecremeaux/
bureau:
- denomination: Co-présidente
prenom: Manon
nom: MURON
- denomination: Co-président
prenom: Franck
nom: MAILLET
- denomination: Vice-président
prenom: Maxime
nom: CHABRÉ
- denomination: Vice-président
prenom: Gregory
nom: DADOLLE
- denomination: Secrétaire
prenom: Ophélie
nom: PEURIÈRE
- denomination: Vice-secrétaire
prenom: Gaëtan
nom: ERVAS
- denomination: Trésorière
prenom: Clémence
nom: COTE
---

View File

@ -1,33 +0,0 @@
---
denomination: Contrastes
title: Contrastes
description: null
mail: null
telephone: null
site: null
facebook: null
bureau:
- denomination: Présidente
prenom: Claudine
nom: DERVAUX VANACKÈRE
mail: clodervaux42@aol.com
telephone: 04 77 62 50 03, 06 06 73 63 59
- denomination: Vice-président
prenom: Marc
nom: FRANCERIES
- denomination: Secrétaire
prenom: Lydie
nom: PETITBOUT
mail: lydie.ptb@wanadoo.fr
telephone: 04 77 62 55 20
- denomination: Trésorier
prenom: Jean
nom: BLANC
- denomination: Échanges sportifs
prenom: Laure
nom: RATHIER
mail: laure.rathier@wanadoo.fr
telephone: 04 77 62 58 07, 07 83 47 62 60
---

View File

@ -1,24 +0,0 @@
---
denomination: CUMA
title: CUMA
description: null
mail: null
telephone: null
site: null
facebook: null
bureau:
- denomination: Président
prenom: Aurélien
nom: MAILLET
- denomination: Vice-président
prenom: Christophe
nom: COTE
- denomination: Trésorier
prenom: Frédéric
nom: DARPHEUILLE
- denomination: Secrétaire
prenom: Lionel
nom: GRANGE
---

View File

@ -1,30 +0,0 @@
---
denomination: Entente Crémeausienne
title: Entente Crémeausienne
description: null
mail: null
telephone: null
site: null
facebook: null
bureau:
- denomination: Co-présidente
prenom: Mélissa
nom: DEBOUT
- denomination: Co-présidente
prenom: Marie-Amélie
nom: DUFOUR
- denomination: Co-secrétaire
prenom: Emmanuelle
nom: VICAT
- denomination: Co-trésorier
prenom: Gérard
nom: LARDEUX
- denomination: Co-secrétaire
prenom: Céline
nom: VICAT
- denomination: Co-trésorier
prenom: Laurent
nom: LASSAGNE
---

View File

@ -1,12 +0,0 @@
---
denomination: ESAT, Le colombier, La Blégnière
title: ESAT LE COLOMBIER - LA BLÉGNIÈRE
description: null
mail: null
telephone: 04 77 66 44 20
site: null
facebook: >-
https://www.facebook.com/ESAT-Le-Colombier-La-Bl%C3%A9gni%C3%A8re-102443351446688
---

View File

@ -1,25 +0,0 @@
---
denomination: Familles Rurales
title: Familles Rurales
description: null
mail: afrcremeaux@gmail.com
telephone: 06 58 81 56 67
site: null
facebook: afr Crémeaux
bureau:
- denomination: Trésorière
prenom: Delphine
nom: FRATY
mail: afrcremeaux@gmail.com
telephone: 06 72 49 12 04
- denomination: Secrétaire
prenom: Magali
nom: CÔTE
telephone: 06 24 47 64 80
- denomination: Présidente
prenom: Nicole
nom: DURAND
telephone: 06 58 81 56 67
---

View File

@ -1,27 +0,0 @@
---
denomination: FNACA
title: FNACA
description: null
mail: null
telephone: null
site: null
facebook: null
bureau:
- denomination: Présidente
prenom: Christiane
nom: TERRIER
- denomination: Vice-Président
prenom: Gérard
nom: TREILLE
- denomination: Trésorière
prenom: Thérèse
nom: ETAIX
- denomination: Vice-trésorière
prenom: Marie-Claire
nom: CHAVALLARD
- denomination: Secrétaire
prenom: Marinette
nom: BLEIN
---

View File

@ -1,24 +0,0 @@
---
denomination: Gymnastique Volontaire
title: Gymnastique Volontaire
description: null
mail: 'gautron.thierry@wanadoo.fr '
telephone: null
site: null
facebook: null
bureau:
- denomination: Secrétaire
prenom: Florence
nom: GAUTRON
telephone: 06 61 23 78 85
- denomination: Présidente
prenom: Stéphanie
nom: DEJOB
telephone: 06 12 22 62 44
- denomination: Trésorière
prenom: Nadège
nom: CLÉMENÇON
telephone: 06 88 55 01 79
---

View File

@ -1,24 +0,0 @@
---
denomination: L'Œil Écoute
title: L'ŒIL ECOUTE
description: Troupe théâtrale de Crémeaux
mail: null
telephone: null
site: null
facebook: https://www.facebook.com/LOeilEcouteCremeaux/
bureau:
- denomination: Présidente
prenom: Émilie
nom: PEURIÈRE
telephone: 06 14 01 61 84
- denomination: Secrétaire
prenom: Laurie
nom: DEJOB
telephone: 06 83 36 26 84
- denomination: Trésorière
prenom: Josiane
nom: DEUX
telephone: 06 25 04 00 79
---
Créé en 1972, l'Oeil écoute est une troupe de théatre amateurs et se distingue par la représentation de farces paysannes et de vaudeville.

View File

@ -1,18 +0,0 @@
---
denomination: LACIM
title: LACIM
description: null
mail: null
telephone: null
site: null
facebook: null
bureau:
- denomination: Présidente
prenom: Annie
nom: SIMON
- denomination: Secrétaire
prenom: Sandrine
nom: DULAC
---

View File

@ -1,21 +0,0 @@
---
denomination: Le Petit Royaume
title: Le Petit Royaume
description: null
mail: null
telephone: 04 77 62 56 34
site: null
facebook: null
bureau:
- denomination: Présidente
prenom: Michelle
nom: HOCQUET
- denomination: Trésorier
prenom: Guy
nom: HOCQUET
- denomination: Secrétaire
prenom: Annie
nom: MONDON
---

View File

@ -1,23 +0,0 @@
---
denomination: Lucé Loisirs
title: Lucé Loisirs
description: null
mail: adeline.chapuis42@gmail.com
telephone: '0638529463'
site: null
facebook: null
bureau:
- denomination: Présidente
prenom: Adeline
nom: PALABOST
- denomination: Trésorière
prenom: Monique
nom: VINKOCZY
- denomination: Scrétaire
prenom: Françoise
nom: GIRAUD
mail: pjfg42@orange.fr
telephone: 06 42 93 57 08
---

View File

@ -1,15 +0,0 @@
---
denomination: Réveil Crémeausien
title: LE REVEIL CREMEAUSIEN
description: 'Le Réveil Crémeausien : batterie-fanfare'
mail: null
telephone: null
site: null
facebook: null
bureau:
- denomination: Vice Secrétaire
prenom: Cédric
nom: DEJOB
---
Le Réveil Crémeausien créé en 1949 par le père Grosbost est une batterie-fanfare et regroupe différents instruments tels que tambours, grosse caisse, cors de chasse, trompettes et clairons.

View File

@ -1,11 +0,0 @@
---
denomination: S.O.U. des Écoles
title: SOU DES ECOLES
description: null
mail: null
telephone: null
site: null
facebook: https://www.facebook.com/souecolecremeaux
---

View File

@ -1,11 +0,0 @@
---
denomination: Saint Joseph
title: Saint Joseph
description: null
mail: null
telephone: null
site: null
facebook: null
---

View File

@ -1,9 +1,37 @@
{{ define "main" }}
<div class="container">
{{ $headless := site.GetPage "/" }}
{{ $widthOriginal := 1920 }}
{{ $heightOriginal := 850 }}
{{ $width := 1208 }}
{{ $height := 534 }}
{{ $image := default ($headless.Resources.GetMatch "**.jpg") (.Resources.GetMatch (default "**.jpg" .Params.image)) }}
{{ if $image }}
{{ if and (ge $image.Width $widthOriginal) (ge $image.Height $heightOriginal) }}
{{ $image = $image.Process (printf "fill %dx%d Center webp" $width $height) }}
{{ else if gt $image.Height $height }}
{{ $image = $image.Process (printf "resize x%d webp" $height) }}
{{ else }}
{{ $image = $image.Process "webp" }}
{{ end }}
<img
class="hero no-print"
src="{{ $image.RelPermalink }}"
alt="{{ or .Params.image_ .Params.image_credit }}"
title="{{ or .Params.image_ .Params.image_credit }}"
/>
{{ end }}
<h1>{{ .RenderString .Title }}</h1>
<div class="container news md">
<small>
Publié le <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Day }} {{ index $.Site.Data.mois (printf "%d" .Date.Month) }} {{ .Date.Year }}</time>{{ if isset .Params "auteur" }} - {{ .Params.auteur }}{{ end }}
Publié le <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Day }} {{ index $.Site.Data.mois (printf "%d" .Date.Month) }} {{ .Date.Year }}</time>{{ if or (isset .Params "auteur") (isset .Params "authors") }} - {{ if isset .Params "authors" -}}
{{ range $key, $value := .Params.authors }}
{{ with site.GetPage $value }}
{{ if gt $key 0 }} & {{ end }}
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{ end }}
{{ end }}
{{- end }}{{ if isset .Params "auteur" }}{{ if isset .Params "authors" -}} & {{ end }}{{ .Params.auteur }}{{ end }}{{ end }}
</small>
{{ .Content }}
<aside>

View File

@ -1,11 +1,9 @@
{{ define "main" }}
<div class="container associations">
<h1>{{ .RenderString .Title }} </h1>
{{ if ne hugo.Environment "production" }}
<div class="container md">
{{ .Content }}
</div>
{{ end }}
<br>
{{ if or .Params.mail .Params.telephone .Params.site .Params.facebook }}
<div class="container md">
@ -46,5 +44,21 @@
</ul>
</div>
{{ end }}
{{ if isset .Params "actualites" }}
<div class="container md">
<aside>
<hr>
<h2>
Les évènements de l'association
</h2>
{{ range .Params.actualites }}
{{ with site.GetPage . }}
{{ .Scratch.Set "big" false }}
{{ partial "article-preview.html" . }}
{{ end }}
{{ end }}
</aside>
</div>
{{ end }}
</div>
{{ end }}

View File

@ -9,9 +9,14 @@
<div class="news viemunicipale">
<h1>Le fil des <strong>actualités</strong></h1>
{{ $lastnews := first 4 (where $actualites "Params.event" false) }}
{{ $first := index (first 1 $lastnews) 0 }}
{{ $others := after 1 $lastnews }}
{{ with $first }}
{{ $highlight := first 1 (where $lastnews "Params.highlight" true) }}
{{ if gt (len $highlight) 0 }}
{{ $highlight = index $highlight 0 }}
{{ else }}
{{ $highlight = index $lastnews 0 }}
{{ end }}
{{ $others := where $lastnews "Title" "ne" $highlight.Title }}
{{ with $highlight }}
{{ .Scratch.Set "big" true }}
{{ partial "article-preview.html" . }}
{{ end }}
@ -25,9 +30,14 @@
<div class="news associations">
<h2 class="h1">Le fil des <strong>Évènements</strong></h2>
{{ $lastnews := first 4 (where $actualites "Params.event" true) }}
{{ $first := index (first 1 $lastnews) 0 }}
{{ $others := after 1 $lastnews }}
{{ with $first }}
{{ $highlight := first 1 (where $lastnews "Params.highlight" true) }}
{{ if gt (len $highlight) 0 }}
{{ $highlight = index $highlight 0 }}
{{ else }}
{{ $highlight = index $lastnews 0 }}
{{ end }}
{{ $others := where $lastnews "Title" "ne" $highlight.Title }}
{{ with $highlight }}
{{ .Scratch.Set "big" true }}
{{ partial "article-preview.html" . }}
{{ end }}
@ -40,7 +50,7 @@
</div>
</div>
<div class="infos">
<div class="nouveautes">
<div class="opening2">
{{ .Content }}
</div>
</div>

View File

@ -1,7 +1,7 @@
{{ $isBig := default false (.Scratch.Get "big") }}
{{ $title := .RenderString .Title }}
{{ $titleWithoutHTML := $title | plainify }}
{{ $pictureSize := cond $isBig "528x528 Center webp" "100x100 Center webp" }}
{{ $pictureSize := cond $isBig "440x440 Center webp" "200x200 Center webp" }}
{{ $truncateSize := cond $isBig 180 90}}
<div class="post{{ if $isBig }} big{{ end }}">
<div class="picture">
@ -16,7 +16,14 @@
</div>
<div class="details">
<small>
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Day }} {{ index $.Site.Data.mois (printf "%d" .Date.Month) }} {{ .Date.Year }}</time>{{ if isset .Params "auteur" }} - {{ .Params.auteur }}{{ end }}
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Day }} {{ index $.Site.Data.mois (printf "%d" .Date.Month) }} {{ .Date.Year }}</time>{{ if or (isset .Params "auteur") (isset .Params "authors") }} - {{ if isset .Params "authors" -}}
{{ range $key, $value := .Params.authors }}
{{ with site.GetPage $value }}
{{ if gt $key 0 }} & {{ end }}
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{ end }}
{{ end }}
{{- end }}{{ if isset .Params "auteur" }}{{ if isset .Params "authors" -}} & {{ end }}{{ .Params.auteur }}{{ end }}{{ end }}
</small>
{{ if $isBig }}
<h2 title="{{ $titleWithoutHTML }}"><a href="{{ .RelPermalink }}">{{ $title }}</a></h2>

View File

@ -1,8 +1,10 @@
{{ $isBig := (default .IsHome .Params.big) }}
{{ $imageSizeSmall := cond $isBig "600x600 Top webp" "600x400 Center webp" }}
{{ $imageSizeBig := cond $isBig "1920x850 Top webp" "1920x450 Center webp" }}
<header class="header{{ if $isBig }} home{{ end }}">
{{ $isActualites := $.InSection (.Site.GetPage "/actualites") }}
<header class="header{{ if $isBig }} home{{ end }}{{ if $isActualites }} actu{{ end }}">
{{ if not $isActualites }}
{{ $headless := .Site.GetPage "/" }}
{{ $imageSizeSmall := cond $isBig "600x600 Top webp" "600x400 Center webp" }}
{{ $imageSizeBig := cond $isBig "1920x850 Top webp" "1920x450 Center webp" }}
{{ $image := default ($headless.Resources.GetMatch "**.jpg") (.Resources.GetMatch (default "**.jpg" .Params.image)) }}
{{ if $image }}
{{ $resizedSmall := $image.Fill $imageSizeSmall }}
@ -16,6 +18,7 @@
title="{{ or .Params.image_ .Params.image_credit }}"
/>
{{ end }}
{{ end }}
<nav class="nav" id="nav" data-open="false">
<div class="container">
<div class="logo">

View File

@ -18,11 +18,11 @@
{{ $orientation := 1 }}
{{ with $image }}{{ with .Exif }}{{ $orientation = .Tags.Orientation }}{{ end }}{{ end }}
{{ if eq $orientation 8 }}
{{ $image = $image.Resize "300x r90" }}
{{ $image = $image.Resize "600x r90" }}
{{ else if eq $orientation 6 }}
{{ $image = $image.Resize "300x r270" }}
{{ $image = $image.Resize "600x r270" }}
{{ end }}
{{ $resized := $image.Resize "300x q100 webp" }}
{{ $resized := $image.Resize "600x q100 webp" }}
<img src="{{ $resized.RelPermalink }}" alt="{{ $title }}" title="{{ $title }}" loading="lazy">
</figure>
{{ end }}

View File

@ -1,7 +1,12 @@
import DirectusToMarkdown from '@resilien/directus-to-markdown'
import urlslug from 'url-slug'
const filterDraft = process.env.DRAFT && process.env.DRAFT == 'true' ? '' : { draft: { _eq: 'false' } }
var lastDate = new Date();
lastDate.setMonth(lastDate.getMonth() - 3);
lastDate.setFullYear(lastDate.getFullYear() - 10);
console.log(lastDate)
const filterDraft = process.env.DRAFT && process.env.DRAFT == 'true' ? { date: { _gt: lastDate } } : { draft: { _eq: 'false' }, date: { _gt: lastDate } }
const filterAssociation = process.env.DRAFT && process.env.DRAFT == 'true' ? '' : { display_website: { _eq: 'true' } }
const config = {
@ -38,8 +43,8 @@ const config = {
},
actualites: {
readByQueryOption: {
fields: ['title', 'date', 'image', 'image_credit', 'vignette', 'vignette_credit', 'description', 'auteur', 'draft', 'content', 'event'],
filterDraft,
fields: ['title', 'date', 'highlight', 'image', 'image_credit', 'vignette', 'vignette_credit', 'description', 'auteur', 'draft', 'content', 'event', 'authors.Association_id.denomination'],
filter: filterDraft,
limit: 1000
},
pathBuilder: (article) => {
@ -47,62 +52,84 @@ const config = {
if (!article.image_credit) delete article.image_credit
if (!article.vignette) delete article.vignette
if (!article.vignette_credit) delete article.vignette_credit
if (!article.auteur) delete article.auteur
if (!article.authors || article.authors.length == 0) {
delete article.authors
} else {
article.authors = article.authors.map(a => `/associations/${urlslug(a.Association_id.denomination)}`)
}
const [year, month, day] = article.date.split("-")
console.log(article.date + ' - ' + article.title)
return `./content/actualites/${year}/${month}/${day}-${urlslug(article.title, { remove: /\./g })}`;
},
deleteFields: [],
},
// Association: {
// readByQueryOption: {
// fields: [
// 'denomination',
// 'title',
// 'description',
// 'mail',
// 'telephone',
// 'site',
// 'facebook',
// 'bureau.sort',
// 'bureau.Contact_id.*',
// 'content',
// ],
// filterAssociation
// },
// pathBuilder: (association) => {
// if (!association.title) {
// association.title = association.denomination
// }
// console.log("Import de l'association « " + association.title + " »")
// if (association.bureau && association.bureau.length > 0) {
// const bureau = []
// for (const contact of association.bureau) {
// const detail = contact.Contact_id
// if (detail) {
// let c = {
// denomination: detail.denomination,
// prenom: detail.prenom,
// nom: detail.nom,
// }
// if (detail.mail && detail.display_mail) {
// c.mail = detail.mail
// }
// if (detail.telephone && detail.display_telephone) {
// c.telephone = detail.telephone
// }
// bureau.push(c)
// } else {
// console.log("problème sur un contact")
// }
// }
// association.bureau = bureau
// } else {
// delete association.bureau
// }
Association: {
readByQueryOption: {
fields: [
'denomination',
'title',
'description',
'mail',
'telephone',
'site',
'facebook',
'bureau.sort',
'bureau.Contact_id.*',
'content',
'actualites.actualites_id.date',
'actualites.actualites_id.title',
],
filter: filterAssociation
},
pathBuilder: (association) => {
if (!association.title) {
association.title = association.denomination
}
console.log("Import de l'association « " + association.title + " »")
if (association.bureau && association.bureau.length > 0) {
const bureau = []
for (const contact of association.bureau) {
const detail = contact.Contact_id
if (detail) {
let c = {
denomination: detail.denomination,
prenom: detail.prenom,
nom: detail.nom,
}
if (detail.mail && detail.display_mail) {
c.mail = detail.mail
}
if (detail.telephone && detail.display_telephone) {
c.telephone = detail.telephone
}
bureau.push(c)
} else {
console.log("problème sur un contact")
}
}
association.bureau = bureau
} else {
delete association.bureau
}
// return `./content/associations/${urlslug(association.denomination)}`;
// },
// deleteFields: [],
// },
if (!association.actualites || association.actualites.length == 0) {
delete association.actualites
} else {
association.actualites = association.actualites.map(a => {
const [year, month, day] = a.actualites_id.date.split("-")
return `/actualites/${year}/${month}/${day}-${urlslug(a.actualites_id.title, { remove: /\./g })}`
})
}
return `./content/associations/${urlslug(association.denomination)}`;
},
deleteFields: [],
},
}
}

Binary file not shown.