diff --git a/static/css/sm.css b/static/css/sm.css index 2d88c67..44f711c 100644 --- a/static/css/sm.css +++ b/static/css/sm.css @@ -50,3 +50,7 @@ a { padding-top: 30px; } } + +.tiny { + font-size: 10px; +} diff --git a/templates/home.html b/templates/home.html index 8a24e34..1e151a2 100644 --- a/templates/home.html +++ b/templates/home.html @@ -10,6 +10,9 @@

My name is Stephen McQuay.

+

+ Your visit occured {{ .time }}. +

{{ end }} diff --git a/web.go b/web.go index 6ae2a01..87e740c 100644 --- a/web.go +++ b/web.go @@ -4,6 +4,7 @@ import ( "fmt" "net/http" "path/filepath" + "time" assetfs "github.com/elazarl/go-bindata-assetfs" ) @@ -49,7 +50,7 @@ func NewSite(sm *http.ServeMux, static, templates string) *Site { func (s *Site) Home(w http.ResponseWriter, req *http.Request) { c := map[string]string{ - "time": "asdf", + "time": time.Now().Format(time.Stamp), } tmpl, err := s.tmpl.Get("home") if err != nil {