feat: Add cremeaux.org portail
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Simon 2024-03-12 10:53:16 +01:00
parent 34c8006ddf
commit 0ad345832e
9 changed files with 211 additions and 0 deletions

View File

@ -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

View File

@ -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 <a class="text-muted" href="https://resilien.fr/">RésiLien</a>'
[deployment.targets]
name = "production"
URL = "s3://cremeaux.org?endpoint=https://s3.garage.resilien.cloud&disableSSL=true&s3ForcePathStyle=true&region=garage"

View File

@ -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

View File

@ -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"

View File

@ -0,0 +1,17 @@
---
title : "Outils numériques libres de <a href='https://cremeaux.fr'>Cremeaux</a>"
description: ""
lead: "Ce site web vous met à disposition de multiples services utiles pour collaborer, partager et avoir une vie numérique plus <a href='/docs/introduction/vie-numérique/'>« saine »</a> sur la commune de <a href='https://cremeaux.fr'>Cremeaux</a>."
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).

View File

@ -0,0 +1,9 @@
- name: hedgedoc
- name: mobilizon
- name: signaturepdf
- name: nextcloud
subscription: true
- name: vikunja
subscription: true
- name: vaultwarden
subscription: true

View File

@ -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 }}

View File

@ -29,6 +29,7 @@
{{- $icon := $service.icon | default $defaultValues.icon -}}
{{- partial "inline-svg" $icon -}}&nbsp;
{{- $service.title | default $defaultValues.title -}}
{{- partial "service/title-after.html" $service -}}
</h2>
<p>{{ $service.description | default $defaultValues.description }}</p>
<div class="btn-group" role="group" aria-label="Basic outlined example">

View File

@ -0,0 +1 @@
<!-- Allow to add custom icon after title -->