diff --git a/.drone.yml b/.drone.yml index 26223fe..b003819 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,6 +22,18 @@ kind: secret name: LAMELIO_AWS_SECRET_ACCESS_KEY data: VcxVOlwmxcs01hi06TalHm0DggpmRZMQqKWcTgNWgBLkvZRiFf5pxx8dTbqjaJ+5zjzj9a/veHqFqZSCipyo5eVayIevJnosnMXjM7j29ij/xpegatmCHXflbc0= +--- +# drone encrypt ResiLien/portails $AWS_ACCESS_KEY_ID +kind: secret +name: CREMEAUX_AWS_ACCESS_KEY_ID +data: eWdafKap4inA/Jp/MzDkZG5D56lJFGVSbO3yt24En3jRMdNafmns97cWnMD/+qcQyRYFulSZ + +--- +# drone encrypt ResiLien/portails $AWS_SECRET_ACCESS_KEY +kind: secret +name: CREMEAUX_AWS_SECRET_ACCESS_KEY +data: L2G0Q59Ujb6TA1Y4VC0ykU7XaGG6wq834i8m3Jcnslj6LyB13L2c7jm0r3kwhp9dm/HmhjAsudVD5AILRKbIof7RHtFrdi5JcoCiAuDlHWQXf48nzDyC8c5uZVU= + --- kind: pipeline type: docker @@ -59,3 +71,22 @@ steps: - hugo --minify --environment apps.lamelio.fr - hugo --minify --environment apps.lamelio.fr - hugo deploy --environment apps.lamelio.fr + +--- +kind: pipeline +type: docker +name: Cremeaux.org + +steps: +- name: Installation des dépendances & construction du site + image: hugomods/hugo:exts-0.123.8 + environment: + AWS_ACCESS_KEY_ID: + from_secret: CREMEAUX_AWS_ACCESS_KEY_ID + AWS_SECRET_ACCESS_KEY: + from_secret: CREMEAUX_AWS_SECRET_ACCESS_KEY + commands: + - npm install --ignore-scripts + - hugo --minify --environment cremeaux.org + - hugo --minify --environment cremeaux.org + - hugo deploy --environment cremeaux.org diff --git a/config/cremeaux.org/hugo.toml b/config/cremeaux.org/hugo.toml new file mode 100644 index 0000000..2ca6f1c --- /dev/null +++ b/config/cremeaux.org/hugo.toml @@ -0,0 +1,20 @@ +baseURL = "https://cremeaux.org/" +title = "Cremeaux.org" +languageCode = "fr-FR" +defaultContentLanguage = "fr" +disableLanguages = ["de", "nl", "en"] + +[Params] + url = "cremeaux.org" + domain = "cremeaux.org" + poweredBy = false + + [Params.doks] + breadcrumbTrail = true + +[languages.fr.params] + footer = 'Mise en place et hébergé avec sobriété par RésiLien' + +[deployment.targets] + name = "production" + URL = "s3://cremeaux.org?endpoint=https://s3.garage.resilien.cloud&disableSSL=true&s3ForcePathStyle=true®ion=garage" diff --git a/config/cremeaux.org/menus.fr.toml b/config/cremeaux.org/menus.fr.toml new file mode 100644 index 0000000..c8005f4 --- /dev/null +++ b/config/cremeaux.org/menus.fr.toml @@ -0,0 +1,19 @@ +[[main]] + name = "Guides" + url = "/docs/introduction/bienvenue/" + weight = 10 + +[[footer]] + name = "Mentions légales" + url = "/mentions-legales/" + weight = 10 + +[[footer]] + name = "Sources du site" + url = "https://git.resilien.fr/ResiLien/portails/" + weight = 20 + +[[footer]] + name = "Statuts des services" + url = "https://status.cremeaux.org/" + weight = 30 diff --git a/config/cremeaux.org/module.toml b/config/cremeaux.org/module.toml new file mode 100644 index 0000000..5d772da --- /dev/null +++ b/config/cremeaux.org/module.toml @@ -0,0 +1,108 @@ +# mounts +## archetypes +[[mounts]] + source = "node_modules/@hyas/doks-core/archetypes" + target = "archetypes" + +[[mounts]] + source = "archetypes" + target = "archetypes" + +## assets +[[mounts]] + source = "node_modules/@hyas/core/assets" + target = "assets" + +[[mounts]] + source = "node_modules/@hyas/images/assets" + target = "assets" + excludeFiles = "/scss/**.scss" + +[[mounts]] + source = "node_modules/@hyas/doks-core/assets" + target = "assets" + +[[mounts]] + source = "node_modules/@tabler/icons/icons" + target = "assets/svgs/tabler-icons" + +[[mounts]] + source = "assets" + target = "assets" + +## content +[[mounts]] + source = "portails/shared/content" + target = "content" + +[[mounts]] + source = "portails/cremeaux.org/content" + target = "content" + +## data +[[mounts]] + source = "node_modules/@hyas/doks-core/data" + target = "data" + +[[mounts]] + source = "data" + target = "data" + +[[mounts]] + source = "portails/shared/data" + target = "data" + +[[mounts]] + source = "portails/cremeaux.org/data" + target = "data" + +## i18n +[[mounts]] + source = "node_modules/@hyas/doks-core/i18n" + target = "i18n" + +[[mounts]] + source = "i18n" + target = "i18n" + +## layouts +[[mounts]] + source = "node_modules/@hyas/core/layouts" + target = "layouts" + +[[mounts]] + source = "node_modules/@hyas/seo/layouts" + target = "layouts" + +[[mounts]] + source = "node_modules/@hyas/images/layouts" + target = "layouts" + +[[mounts]] + source = "node_modules/@hyas/doks-core/layouts" + target = "layouts" + +[[mounts]] + source = "node_modules/@hyas/inline-svg/layouts" + target = "layouts" + +[[mounts]] + source = "layouts" + target = "layouts" + +[[mounts]] + source = "portails/shared/layouts" + target = "layouts" + +[[mounts]] + source = "portails/cremeaux.org/layouts" + target = "layouts" + +## static +[[mounts]] + source = "node_modules/@hyas/doks-core/static" + target = "static" + +[[mounts]] + source = "static" + target = "static" diff --git a/portails/cremeaux.org/content/_index.md b/portails/cremeaux.org/content/_index.md new file mode 100644 index 0000000..edaefae --- /dev/null +++ b/portails/cremeaux.org/content/_index.md @@ -0,0 +1,17 @@ +--- +title : "Outils numériques libres de Cremeaux" +description: "" +lead: "Ce site web vous met à disposition de multiples services utiles pour collaborer, partager et avoir une vie numérique plus « saine » sur la commune de Cremeaux." +date: 2023-09-07T16:33:54+02:00 +lastmod: 2023-09-07T16:33:54+02:00 +draft: false +seo: + title: "Outils numériques libres de Cremeaux" # custom title (optional) + description: "Ce site web vous met à disposition de multiples services utiles pour collaborer, partager et avoir une vie numérique plus « saine » sur la commune de Cremeaux." # custom description (recommended) + canonical: "" # custom canonical URL (optional) + noindex: false # false (default) or true +--- + +L'association [RésiLien](https://resilien.fr) met à disposition des outils informatiques pour la commune de [Crémeaux](https://cremeaux.fr). + +Certains sont gratuit {{< inline-svg src="currency-euro-off" stroke-width="1" stroke="#ee52b7" height="1rem" width="1rem" class="svg-inline-custom" >}} tandis que d'autres nécessitent une adhésion à l'association ou sont payants {{< inline-svg src="currency-euro" stroke-width="1" stroke="#ee52b7" height="1rem" width="1rem" class="svg-inline-custom" >}} en fonction de l'espace utilisé. Vous pouvez nous contacter pour la création d'un compte à [comptes@cremeaux.org](mailto:comptes@cremeaux.org). diff --git a/portails/cremeaux.org/data/services.yml b/portails/cremeaux.org/data/services.yml new file mode 100644 index 0000000..d5b3e17 --- /dev/null +++ b/portails/cremeaux.org/data/services.yml @@ -0,0 +1,9 @@ +- name: hedgedoc +- name: mobilizon +- name: signaturepdf +- name: nextcloud + subscription: true +- name: vikunja + subscription: true +- name: vaultwarden + subscription: true diff --git a/portails/cremeaux.org/layouts/partials/service/title-after.html b/portails/cremeaux.org/layouts/partials/service/title-after.html new file mode 100644 index 0000000..3986c00 --- /dev/null +++ b/portails/cremeaux.org/layouts/partials/service/title-after.html @@ -0,0 +1,5 @@ + {{ if (.subscription | default false) -}} +{{- partial "inline-svg" (dict "src" "currency-euro" "stroke-width" "1" "stroke" "#ee52b7" "height" "1rem" "width" "1rem" "class" "svg-inline-custom") }} +{{ else }} +{{- partial "inline-svg" (dict "src" "currency-euro-off" "stroke-width" "1" "stroke" "#ee52b7" "height" "1rem" "width" "1rem" "class" "svg-inline-custom") }} +{{ end }} diff --git a/portails/shared/layouts/index.html b/portails/shared/layouts/index.html index c9525fb..c55b2f7 100644 --- a/portails/shared/layouts/index.html +++ b/portails/shared/layouts/index.html @@ -29,6 +29,7 @@ {{- $icon := $service.icon | default $defaultValues.icon -}} {{- partial "inline-svg" $icon -}} {{- $service.title | default $defaultValues.title -}} + {{- partial "service/title-after.html" $service -}}
{{ $service.description | default $defaultValues.description }}