aboutsummaryrefslogtreecommitdiff
path: root/backend/templates
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-10-02 22:35:58 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-10-02 22:35:58 +0200
commit6044dd841c81f0f4d206c6c8800b0fd30320cf13 (patch)
tree7498d483e661e0c87d3af2f7ab03eacda48fe30b /backend/templates
parent5dfd71bfe1c0e25da413f00256a302b13c88d26d (diff)
feat(backend): display list of logs in home
Diffstat (limited to 'backend/templates')
-rw-r--r--backend/templates/home.html20
1 files changed, 6 insertions, 14 deletions
diff --git a/backend/templates/home.html b/backend/templates/home.html
index fb927eb..f0b9b9c 100644
--- a/backend/templates/home.html
+++ b/backend/templates/home.html
@@ -6,26 +6,18 @@
</p>
</div>
<article>
+ {{ range .Logs }}
<article>
- <h2><a href="log.html">Article title</a></h2>
+ <h2><a href="/log/{{ .Slug }}">{{ .LogTitle }}</a></h2>
<figure>
- <a href="log.html"><img src="https://placehold.co/1920x1080" alt=""></a>
- <figcaption>A placeholder.</figcaption>
+ <a href="/log/{{ .Slug }}"><img src="{{ .Img.Src }}" alt="{{ .Img.Alt }}"></a>
+ <figcaption>{{ .Img.Legend }}</figcaption>
</figure>
<p>
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim aeque doleamus animo, cum corpore dolemus, fieri tamen permagna accessio potest, si aliquod aeternum et infinitum impendere malum nobis opinemur.
- </p>
- </article>
- <article>
- <h2><a href="log.html">Article title</a></h2>
- <figure>
- <a href="log.html"><img src="https://placehold.co/1920x1080" alt=""></a>
- <figcaption>A placeholder.</figcaption>
- </figure>
- <p>
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim aeque doleamus animo, cum corpore dolemus, fieri tamen permagna accessio potest, si aliquod aeternum et infinitum impendere malum nobis opinemur.
+ {{ .Description }}
</p>
</article>
+ {{ end }}
<div class="pagination">
<a href="">Précédent</a>
<p>01/15</p>