This commit is contained in:
Simon 2022-02-23 11:11:09 +01:00
parent aeccd70318
commit 6af33a030e
6 changed files with 12 additions and 85 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
public public
resources resources
backups backups
.hugo_build.lock

View File

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

View File

@ -1,4 +1,4 @@
FROM registry.weko.io/nginx-lowtech:0.0.9 FROM registry.weko.io/nginx-lowtech:0.1.0
# Copie des sources du site # Copie des sources du site
COPY public /usr/share/nginx/html COPY public /usr/share/nginx/html

View File

@ -1,75 +0,0 @@
{{ 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" loading="lazy">{{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" loading="lazy">
<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 }}" loading="lazy" />
{{ else }}
{{ .content | markdownify }}
{{ end }}
</article>
<article>
{{ if modBool $i 2 }}
{{ .content | markdownify }}
{{ else }}
<img src="{{ .image }}" alt="{{ .Title }}" loading="lazy" />
{{ end }}
</article>
</section>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
<section class="highlight text-image full">
<article>
<h3>Accompagné par l'incubateur Ronalpia</h3>
<p>« Jai le plaisir de vous annoncer quen 2021, mon entreprise va bénéficier dun 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" loading="lazy" />
</a>
</article>
</section>
{{ end }}

View File

@ -2,3 +2,7 @@
<p>Ce site est optimisé, il <a href="https://www.websitecarbon.com/website/weko-io/">émet seulement 0.05g de CO<sub>2</sub></a> à chaque visite.</p> <p>Ce site est optimisé, il <a href="https://www.websitecarbon.com/website/weko-io/">émet seulement 0.05g de CO<sub>2</sub></a> à chaque visite.</p>
<p>©Weko 2021</p> <p>©Weko 2021</p>
</footer> </footer>
{{ if or (eq hugo.Environment "production") (eq hugo.Environment "staging") }}
<script defer data-api="/api/event" data-domain="{{if eq hugo.Environment "staging" }}staging.{{ end }}weko.io" src="/js/script.js"></script>
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
{{ end }}

12
run
View File

@ -7,14 +7,14 @@ set -eu
. ./.env . ./.env
. ./themes/hugo-theme-lowtech/scripts/run . ./themes/hugo-theme-lowtech/scripts/run
echo " _" echo ' _'
echo " | |" echo '__ _____| | _____'
echo "__ _____| | _____" echo '\ \ /\ / / _ | |/ / _ \'
echo "\ \ /\ / / _ \ |/ / _ \\" echo ' \ V V | __| | (_) |'
echo " \ V V / __/ < (_) |" echo ' \_/\_/ \___|_|\_\___/'
echo " \_/\_/ \___|_|\_\___/"
echo echo
echo echo
# https://duckduckgo.com/?q=Figlet+weko
if [ $# -ge 1 ]; then if [ $# -ge 1 ]; then
$@ $@