diff --git a/factorio-site.go b/factorio-site.go index 1f8066b..d3ef01d 100644 --- a/factorio-site.go +++ b/factorio-site.go @@ -61,12 +61,13 @@ func main() { return } - data := serverData{ + data := []serverData{} + data = append(data, serverData{ *serverAddr, 34197, "Server with Bob's Mod, est. Feb 2020", playersOnline, - } + }) t.Execute(w, data) }) diff --git a/templates/index.html b/templates/index.html index bbd2f72..84401e3 100644 --- a/templates/index.html +++ b/templates/index.html @@ -10,11 +10,15 @@ -

blackolivepineapple.pizza Factorio Server

- +

blackolivepineapple.pizza Factorio Servers

+ {{range .}} +

{{.Title}}

+ + {{end}}