aboutsummaryrefslogtreecommitdiff
path: root/backend/section.go
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2026-01-02 18:09:55 +0100
committerWilliam Hergès <william@herges.fr>2026-01-02 18:10:04 +0100
commit7d4ec713ba76d7e787c9d787a38a96b81daf52dc (patch)
tree0d0199d5b11a503dad236f9c9571ac04b819beb8 /backend/section.go
parent2e16b351cd53c9d732eafa4eec3e4c8568853f1b (diff)
feat(backend): specify title name of section entry in config
Diffstat (limited to 'backend/section.go')
-rw-r--r--backend/section.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/section.go b/backend/section.go
index 5bbf558..2e0c520 100644
--- a/backend/section.go
+++ b/backend/section.go
@@ -25,6 +25,7 @@ var (
type Section struct {
Name string `toml:"name"`
+ TitleName string `toml:"title_name"`
Folder string `toml:"folder"`
Description string `toml:"description"`
URI string `toml:"uri"`
@@ -204,7 +205,7 @@ func (s *Section) handleOne(w http.ResponseWriter, r *http.Request) {
return
}
}
- d.section = s.Name[:len(s.Name)-1]
+ d.section = s.TitleName
d.handleGeneric(w, r, "data", d)
}