-
-
- { strconv.Itoa(year.Year) }
- for _, p := range year.RecapParagraphs { -{ p }
- } -
-
- for _, r := range year.Results {
-
+
+
+ { team.Place }
+
+ { team.Name }
+
+}
diff --git a/internal/templates/partials/pagenames.go b/internal/templates/partials/pagenames.go
index 17422bd..f9ca2c7 100644
--- a/internal/templates/partials/pagenames.go
+++ b/internal/templates/partials/pagenames.go
@@ -1,5 +1,6 @@
package partials
+// TODO consider moving this somewhere else
type PageName string
const (
-
- - -
-
+}
+
+templ year(y YearInfo) {
+
}
+
+templ winningTeam(i int, team WinningTeam) {
+
+
+
+
+ { strconv.Itoa(y.Year) }
+ for _, p := range y.RecapParagraphs { +{ p }
+ } +
+
-
+ for _, r := range y.Results {
+
-
+
- }
+ { r.Name } Competition Winners
+
+
+
-
- }
+
- for i, link := range year.Links {
- if i > 0 {
- •
+
+ }
+
-
+ for i, t := range r.Teams {
+ @winningTeam(i, t)
}
- { link.Title }
- }
+
+
+ for i, link := range y.Links {
+ if i > 0 {
+ •
+ }
+ { link.Title }
+ }
+
+ + { team.School } • { team.Location } +
+