aboutsummaryrefslogtreecommitdiff
path: root/backend/section.go
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2025-10-27 17:21:41 +0100
committerWilliam Hergès <william@herges.fr>2025-10-27 17:21:41 +0100
commit3ce41d99d688410a361d83767b50b64a35b569d4 (patch)
tree3e53a0a1356950575d152f3d8d1eb18bec33c633 /backend/section.go
parent0c3a89ee546a2a3215eb32d9786dabeda051812d (diff)
feat(sections): general rss feed
Diffstat (limited to 'backend/section.go')
-rw-r--r--backend/section.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/section.go b/backend/section.go
index 06b48cc..a22d286 100644
--- a/backend/section.go
+++ b/backend/section.go
@@ -78,7 +78,7 @@ func (s *Section) Load(_ *Config) bool {
}
return false
}
- logger.Info("checking directory...", "path", s.Folder)
+ logger.Info("checking directory...")
err = s.readDir(s.Folder, dir)
if err != nil {
slog.Error("reading directory", "error", err)
@@ -168,7 +168,7 @@ func (s *Section) handleList(w http.ResponseWriter, r *http.Request) {
}
func (s *Section) handleRSS(w http.ResponseWriter, r *http.Request) {
- d := handleGenericSectionDisplay(w, r, 5)
+ d := handleGenericSectionDisplay(w, r, []Section{*s}, 5)
if d == nil {
return
}