aboutsummaryrefslogtreecommitdiff
path: root/backend/templates
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2025-10-27 17:32:41 +0100
committerWilliam Hergès <william@herges.fr>2025-10-27 17:32:41 +0100
commit1e2ad3a8f8cd2c12786b92210616325a33d1b209 (patch)
tree8f38b973a8dd3fc22bbd28498004940451621b41 /backend/templates
parent3ce41d99d688410a361d83767b50b64a35b569d4 (diff)
feat(home): better display of sections
Diffstat (limited to 'backend/templates')
-rw-r--r--backend/templates/home.html14
1 files changed, 8 insertions, 6 deletions
diff --git a/backend/templates/home.html b/backend/templates/home.html
index d5dbb28..d574525 100644
--- a/backend/templates/home.html
+++ b/backend/templates/home.html
@@ -4,12 +4,14 @@
<h1>{{ .Name }}</h1>
<p>{{ .PageDescription }}</p>
</div>
- {{ range .Sections }}
- <div>
- <h2>{{ .Name }}</h2>
- <p>{{ .Description }}</p>
- {{ template "section_display" . }}
+ <div class="sections">
+ {{ range .Sections }}
+ <section>
+ <h2>{{ .Name }}</h2>
+ <p>{{ .Description }}</p>
+ {{ template "section_display" . }}
+ </section>
+ {{ end }}
</div>
- {{ end }}
</main>
{{end}}