aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend/data.go3
-rw-r--r--backend/section.go1
2 files changed, 3 insertions, 1 deletions
diff --git a/backend/data.go b/backend/data.go
index 809e6e6..13adcec 100644
--- a/backend/data.go
+++ b/backend/data.go
@@ -37,6 +37,7 @@ type data struct {
Logo *Logo
Quote string
Language string
+ section string
}
func (d *data) SetData(data *data) {
@@ -148,7 +149,7 @@ func (d *data) handleRSS(w http.ResponseWriter, r *http.Request, custom dataUsab
func (d *data) Title() string {
title := d.Name
if d.Article {
- title += " - log entry"
+ title = fmt.Sprintf("%s - %s entry", title, d.section)
}
if len(d.title) != 0 {
title += " - " + d.title
diff --git a/backend/section.go b/backend/section.go
index a22d286..4011e5b 100644
--- a/backend/section.go
+++ b/backend/section.go
@@ -193,6 +193,7 @@ func (s *Section) handleOne(w http.ResponseWriter, r *http.Request) {
return
}
}
+ d.section = s.Name[:len(s.Name)-1]
d.handleGeneric(w, r, "data", d)
}