From 82ad3593a4735055d9b362ab94bc4a9e4f20e4a4 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Wed, 4 Feb 2026 17:04:55 +0100 Subject: feat(frontend): smaller list display instead of bigger one --- backend/section.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'backend/section.go') diff --git a/backend/section.go b/backend/section.go index 9d49ea2..376f562 100644 --- a/backend/section.go +++ b/backend/section.go @@ -43,6 +43,7 @@ type sectionData struct { DataTitle string Content template.HTML Slug string + URI string } func (d *sectionData) SetData(dt *data) { @@ -163,7 +164,7 @@ func (s *Section) Handle(r *chi.Mux) { } func (s *Section) handleList(w http.ResponseWriter, r *http.Request) { - p := s.handlePagination(w, r, 5) + p := s.handlePagination(w, r, 7) if p == nil { return } @@ -214,6 +215,7 @@ func (s *Section) parse(d *sectionData, mu *sync.Mutex, path, slug string) bool d.Article = true d.DataTitle = slug d.Slug = slug + d.URI = s.URI b, err := os.ReadFile(path + ".md") if err != nil { if os.IsNotExist(err) { -- cgit v1.2.3