aboutsummaryrefslogtreecommitdiff
path: root/backend/templates
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2025-10-27 14:42:36 +0100
committerWilliam Hergès <william@herges.fr>2025-10-27 14:42:36 +0100
commit9c2d960a3b7728b7857ad71ed656be4a02d58599 (patch)
tree7fbb2bc0e8201aeae16e03dd7fb7ae48c317bb6d /backend/templates
parent8d000018e132583bf4797ac9cb4ce2c4e96ed8ba (diff)
fix(backend): missing files
Diffstat (limited to 'backend/templates')
-rw-r--r--backend/templates/data.html11
-rw-r--r--backend/templates/home_section.html10
2 files changed, 21 insertions, 0 deletions
diff --git a/backend/templates/data.html b/backend/templates/data.html
new file mode 100644
index 0000000..a384459
--- /dev/null
+++ b/backend/templates/data.html
@@ -0,0 +1,11 @@
+{{define "body"}}
+<article id="content">
+ <h1>{{ .DataTitle }}</h1>
+ <p>{{ .Description }}</p>
+ <figure>
+ <img src="{{ static .Img.Src }}" alt="{{ .Img.Alt }}" class="large" />
+ <figcaption>{{ .Img.Legend }}</figcaption>
+ </figure>
+ {{ .Content }}
+</article>
+{{end}}
diff --git a/backend/templates/home_section.html b/backend/templates/home_section.html
new file mode 100644
index 0000000..cf7595d
--- /dev/null
+++ b/backend/templates/home_section.html
@@ -0,0 +1,10 @@
+{{define "body"}}
+<main id="content">
+ {{ range .Sections }}
+ <div class="introduction">
+ <h1>{{ .Name }}</h1>
+ <p>{{ .Description }}</p>
+ </div>
+ {{ template "section_display" . }} {{ end }}
+</main>
+{{end}}