feat: Ajout de la configuration
This commit is contained in:
parent
d4c8e51d70
commit
b60416834e
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything
|
||||
**
|
||||
|
||||
!public
|
|
@ -0,0 +1,10 @@
|
|||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
|
@ -0,0 +1,4 @@
|
|||
DOCKER_CONTEXT=vert
|
||||
NAME=weko
|
||||
URL=weko.io
|
||||
STATS_CONTAINER=weko-stats
|
|
@ -0,0 +1,3 @@
|
|||
public
|
||||
resources
|
||||
backups
|
|
@ -0,0 +1,3 @@
|
|||
[submodule "themes/hugo-theme-lowtech"]
|
||||
path = themes/hugo-theme-lowtech
|
||||
url = https://git.weko.io/kosssi/hugo-theme-lowtech.git
|
|
@ -0,0 +1,4 @@
|
|||
FROM registry.weko.io/nginx-lowtech:0.0.8
|
||||
|
||||
# Copie des sources du site
|
||||
COPY public /usr/share/nginx/html
|
|
@ -0,0 +1,12 @@
|
|||
# Weko
|
||||
|
||||
Voici les sources du site
|
||||
|
||||
## Outils
|
||||
|
||||
- `hugo`
|
||||
|
||||
## Inspirations
|
||||
|
||||
- https://reset.fing.org/coalitions.html
|
||||
- https://le-filament.com/
|
|
@ -0,0 +1,37 @@
|
|||
version: "3.8"
|
||||
|
||||
volumes:
|
||||
weko-log:
|
||||
name: weko-log
|
||||
weko-stats:
|
||||
name: weko-stats
|
||||
|
||||
services:
|
||||
weko-prod:
|
||||
container_name: weko-prod
|
||||
build: .
|
||||
restart: always
|
||||
labels:
|
||||
traefik.enable: "true"
|
||||
traefik.http.routers.weko.rule: "Host(`${URL}`)"
|
||||
traefik.http.routers.weko.entrypoints: "web"
|
||||
volumes:
|
||||
- weko-log:/var/log/nginx
|
||||
- weko-stats:/usr/share/nginx/html/stats
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
|
||||
weko-stats:
|
||||
container_name: weko-stats
|
||||
image: registry.weko.io/goaccess:1.4.6
|
||||
restart: always
|
||||
volumes:
|
||||
- weko-log:/var/log/nginx
|
||||
- weko-stats:/usr/share/nginx/html/stats
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: traefik
|
|
@ -0,0 +1,19 @@
|
|||
version: "3.8"
|
||||
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: traefik
|
||||
|
||||
services:
|
||||
weko-staging:
|
||||
container_name: weko-staging
|
||||
build: .
|
||||
restart: always
|
||||
labels:
|
||||
traefik.enable: "true"
|
||||
traefik.http.routers.weko-staging.rule: "Host(`staging.${URL}`)"
|
||||
traefik.http.routers.weko-staging.entrypoints: "web"
|
||||
volumes:
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
|
@ -0,0 +1,75 @@
|
|||
{{ define "main" }}
|
||||
|
||||
{{ with site.Data.homepage.banner }}
|
||||
<section>
|
||||
<article>
|
||||
<h1>{{ .title | markdownify }}</h1>
|
||||
{{with .image}}<img src="{{ . | absURL }}" alt="Le futur du numérique responsable">{{end}}
|
||||
<p class="mb-4">{{ .content | markdownify }}</p>
|
||||
{{ if .button.enable }}
|
||||
{{ with .button }}
|
||||
<p><a href="{{ .link | safeURL }}" class="btn">{{ .label }}</a></p>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</article>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
{{ if site.Data.homepage.valeur.enable }}
|
||||
{{ with site.Data.homepage.valeur }}
|
||||
<section class="highlight column full">
|
||||
<section>
|
||||
<h2 class="section-title">{{ .title | markdownify }}</h2>
|
||||
</section>
|
||||
<section class="full">
|
||||
{{ range .valeur_item }}
|
||||
<article class="box">
|
||||
<img src="images/{{.image}}.svg" alt="{{ .name | title }}" height="64" width="64">
|
||||
<h4 class="mb-2">{{ .name | title }}</h4>
|
||||
<p>{{ .content | markdownify }}</p>
|
||||
</article>
|
||||
{{ end }}
|
||||
</section>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if site.Data.homepage.presentations.enable }}
|
||||
{{ with site.Data.homepage.presentations }}
|
||||
{{ range $i,$p := .presentations_item }}
|
||||
{{ with $p }}
|
||||
<section class="{{ if modBool $i 2 }}image-text{{ else }}highlight text-image{{end}} full">
|
||||
<article>
|
||||
{{ if modBool $i 2 }}
|
||||
<img src="{{ .image }}" alt="{{ .Title }}" />
|
||||
{{ else }}
|
||||
{{ .content | markdownify }}
|
||||
{{ end }}
|
||||
</article>
|
||||
<article>
|
||||
{{ if modBool $i 2 }}
|
||||
{{ .content | markdownify }}
|
||||
{{ else }}
|
||||
<img src="{{ .image }}" alt="{{ .Title }}" />
|
||||
{{ end }}
|
||||
</article>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<section class="highlight text-image full">
|
||||
<article>
|
||||
<h3>Accompagné par l'incubateur Ronalpia</h3>
|
||||
<p>« J’ai le plaisir de vous annoncer qu’en 2021, mon entreprise va bénéficier d’un accompagnement personnalisé par <a href="https://www.ronalpia.fr/">Ronalpia</a> !<br>
|
||||
Cela va me permettre de développer mon projet et contribuer à réduire les impacts environnementaux du numérique sur mon territoire ! »</p>
|
||||
</article>
|
||||
<article>
|
||||
<a href="https://www.ronalpia.fr/">
|
||||
<img src="/images/ronalpia.png" alt="Ronalpia, incubation 2021" />
|
||||
</a>
|
||||
</article>
|
||||
</section>
|
||||
|
||||
{{ end }}
|
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
|
||||
# -e Exit immediately if a command exits with a non-zero status.
|
||||
# -u Treat unset variables as an error when substituting.
|
||||
set -eu
|
||||
|
||||
. ./.env
|
||||
. ./themes/hugo-theme-lowtech/scripts/run
|
||||
|
||||
echo " _"
|
||||
echo " | |"
|
||||
echo "__ _____| | _____"
|
||||
echo "\ \ /\ / / _ \ |/ / _ \\"
|
||||
echo " \ V V / __/ < (_) |"
|
||||
echo " \_/\_/ \___|_|\_\___/"
|
||||
echo
|
||||
echo
|
||||
|
||||
if [ $# -ge 1 ]; then
|
||||
$@
|
||||
else
|
||||
help_generic
|
||||
fi
|
||||
|
||||
end
|
Loading…
Reference in New Issue