summaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/main.go b/main.go
index b31186f..d1eb88a 100644
--- a/main.go
+++ b/main.go
@@ -13,7 +13,6 @@ import (
"regexp"
"strconv"
- "ricketyspace.net/peach/meta"
"ricketyspace.net/peach/search"
"ricketyspace.net/peach/version"
"ricketyspace.net/peach/weather"
@@ -106,10 +105,16 @@ func showWeather(w http.ResponseWriter, lat, lng float32) {
func showMeta(w http.ResponseWriter, r *http.Request) {
// Make meta info.
- meta := meta.NewMeta()
+ type Meta struct {
+ Version string
+ Title string
+ }
+ m := new(Meta)
+ m.Version = version.Version
+ m.Title = "about"
// Render.
- err := peachTemplates.ExecuteTemplate(w, "about.tmpl", meta)
+ err := peachTemplates.ExecuteTemplate(w, "about.tmpl", m)
if err != nil {
log.Printf("weather: template: %v", err)
return