xonecas.io
8356
Wx

www-xonecas-io / commit ad47c53

front page drops the Languages stat (1034)

Co-Authored-By: Claude Opus 5.5

Sean Caetano Martin2026-11-08 ad47c53c8ad043b595fc1be8f20641e09bff817f parent 9c3e6e4

3 files changed

internal/site/home.go+6−10
@@ -31,11 +31,11 @@ type Recent struct {
3131
3232 // HomeData is the home page: totals, the wall of every month, and the projects with the latest commits.
3333 type HomeData struct {
34- Commits, Projects, Languages int
35- Busiest, Quietest string
36- Wall []WallYear
37- Recent []Recent
38- Tags []string
34+ Commits, Projects int
35+ Busiest, Quietest string
36+ Wall []WallYear
37+ Recent []Recent
38+ Tags []string
3939 }
4040
4141 // level is the heat of a commit count, 0 to 6.
@@ -60,18 +60,14 @@ func months(year string, counts map[string]int) []Cell {
6060
6161 func homeData(shown []project.Project, rows []ProjectRow) HomeData {
6262 d := HomeData{Projects: len(shown), Tags: []string{"frontend", "backend", "small", "big", "pre-AI", "post-AI"}}
63- all, langs, first, last := map[string]int{}, map[string]bool{}, "9999", "0000"
63+ all, first, last := map[string]int{}, "9999", "0000"
6464 for _, p := range shown {
6565 d.Commits += p.Commits
6666 for m, n := range p.Months {
6767 all[m] += n
6868 }
69- if len(p.Languages) > 0 {
70- langs[p.Languages[0].Name] = true
71- }
7269 first, last = min(first, p.First[:4]), max(last, p.Last[:4])
7370 }
74- d.Languages = len(langs)
7571 busiest, quiet, quietN := "", "", -1
7672 for y := mustAtoi(first); y <= mustAtoi(last); y++ {
7773 year := strconv.Itoa(y)
internal/site/templates/index.html+1−1
@@ -6,7 +6,7 @@
66 <p class="text-sm text-soft">xonecas · sacenox</p>
77 <p class="mt-3 text-sm">Every project I have made public since {{(index .Wall 0).Year}}, in one place. Browse it, clone it, it is all read-only.</p>
88 <dl class="mt-4 text-sm">
9- {{range list (list "Projects" .Projects) (list "Commits" (comma .Commits)) (list "Languages" .Languages) (list "Busiest month" .Busiest) (list "Quietest year" .Quietest)}}
9+ {{range list (list "Projects" .Projects) (list "Commits" (comma .Commits)) (list "Busiest month" .Busiest) (list "Quietest year" .Quietest)}}
1010 <div class="flex justify-between py-1.5 border-b border-line"><dt>{{index . 0}}</dt><dd class="font-bold">{{index . 1}}</dd></div>{{end}}
1111 </dl>
1212 <div class="flex flex-wrap gap-1 mt-4">{{range .Tags}}<a href="/projects/?tag={{.}}" class="flex no-underline">{{template "tag" .}}</a>{{end}}</div>
tickets/1034-remove-the-languages-entry.md+22−0
@@ -0,0 +1,22 @@
1+---
2+id: 1034
3+title: remove the "languages" entry
4+type: chore
5+status: review
6+priority: p2
7+created: 2026-11-08T05:07:33Z
8+updated: 2026-11-08T05:09:24Z
9+source: devnote
10+moves: 2026-11-08T05:07:37Z inbox doing drag; 2026-11-08T05:09:19Z doing review agent
11+area: site
12+---
13+
14+## Context
15+
16+Filed from `http://192.168.122.10:8080/`, on `dt`.
17+
18+## Notes
19+
20+- 2026-11-08 05:09Z (agent): Done: the front page's stat list no longer has 'Languages'. It now reads Projects, Commits, Busiest month, Quietest year. I removed it from index.html and dropped HomeData.Languages and its count from home.go. The project page's Languages box is untouched, since the ticket was filed on the front page's dt. Checked: go vet and go test pass, and after a rebuild curl of / lists those four dt entries. I also set type to task and area to site.
21+
22+- 2026-11-08 05:09Z (agent): Correction: type is chore, not task. The board only has bug, feature and chore.