diff options
| author | William Hergès <william@herges.fr> | 2025-10-27 17:32:41 +0100 |
|---|---|---|
| committer | William Hergès <william@herges.fr> | 2025-10-27 17:32:41 +0100 |
| commit | 1e2ad3a8f8cd2c12786b92210616325a33d1b209 (patch) | |
| tree | 8f38b973a8dd3fc22bbd28498004940451621b41 /backend | |
| parent | 3ce41d99d688410a361d83767b50b64a35b569d4 (diff) | |
feat(home): better display of sections
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/templates/home.html | 14 |
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}} |
