aboutsummaryrefslogtreecommitdiff
path: root/backend/templates/home.html
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-10-03 10:57:34 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-10-03 10:57:34 +0200
commitcec39db23db603e87b969a5c630b5873f96a8be7 (patch)
tree0f5199d384e749bc0c37dd40ff51409dc45c389b /backend/templates/home.html
parenta2dad61a48af63db2fd00bee3f6ea487720d33bd (diff)
feat(backend): create template for logs display
Diffstat (limited to 'backend/templates/home.html')
-rw-r--r--backend/templates/home.html24
1 files changed, 2 insertions, 22 deletions
diff --git a/backend/templates/home.html b/backend/templates/home.html
index 37236ba..1a6b158 100644
--- a/backend/templates/home.html
+++ b/backend/templates/home.html
@@ -5,25 +5,5 @@
{{ .Description }}
</p>
</div>
-<article>
- {{ range .Logs }}
- <article>
- <h2><a href="/log/{{ .Slug }}">{{ .LogTitle }}</a></h2>
- <figure>
- <a href="/log/{{ .Slug }}"><img src="{{ .Img.Src }}" alt="{{ .Img.Alt }}"></a>
- <figcaption>{{ .Img.Legend }}</figcaption>
- </figure>
- <p>
- {{ .Description }}
- </p>
- </article>
- {{ end }}
- {{ if ne .PagesNumber 1 }}
- <div class="pagination">
- {{ if ne .CurrentPage 1 }}<a href="?page={{ before .CurrentPage }}">Précédent</a>{{else}}<p></p>{{end}}
- <p>{{ .CurrentPage }}/{{ .PagesNumber }}</p>
- {{ if ne .CurrentPage .PagesNumber }}<a href="?page={{ next .CurrentPage }}">Suivant</a>{{else}}<p></p>{{end}}
- </div>
- {{ end }}
-</article>
-{{end}} \ No newline at end of file
+{{ template "logs_display" . }}
+{{end}}