aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2025-10-27 15:53:45 +0100
committerWilliam Hergès <william@herges.fr>2025-10-27 15:53:45 +0100
commit1f0cf029644861bc31a363ecfdbfcb6ebafff3b2 (patch)
tree5c2f1c62d2ff68c578547e70603d7ed7a4519861
parent9c2d960a3b7728b7857ad71ed656be4a02d58599 (diff)
fix(section): bad description in og
-rw-r--r--backend/section.go1
-rw-r--r--backend/templates/components.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/backend/section.go b/backend/section.go
index 931b7ca..01ffc90 100644
--- a/backend/section.go
+++ b/backend/section.go
@@ -163,6 +163,7 @@ func (s *Section) handleList(w http.ResponseWriter, r *http.Request) {
sec.CurrentPage = p.Current
sec.PagesNumber = p.Max
d.Sections = append(d.Sections, &sec)
+ d.PageDescription = sec.Description
d.handleGeneric(w, r, "home_section", d)
}
diff --git a/backend/templates/components.html b/backend/templates/components.html
index 72bf40e..5365445 100644
--- a/backend/templates/components.html
+++ b/backend/templates/components.html
@@ -2,7 +2,7 @@
<article>
{{ $uri := .URI }} {{ range .Data }}
<article>
- <h2><a href="/{{ $uri }}/{{ .Slug }}">{{ .DataTitle }}</a></h2>
+ <h3><a href="/{{ $uri }}/{{ .Slug }}">{{ .DataTitle }}</a></h3>
<figure>
<a href="/{{ $uri }}/{{ .Slug }}"><img src="{{ static .Img.Src }}" alt="{{ .Img.Alt }}" /></a>
<figcaption>{{ .Img.Legend }}</figcaption>