feat: Ajout de la configuration
This commit is contained in:
75
home.html
Normal file
75
home.html
Normal file
@ -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 }}
|
Reference in New Issue
Block a user