aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-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>