progress
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2020-03-24 17:49:19 -07:00
parent fa62cf4bd0
commit c61227293e
17 changed files with 364 additions and 129 deletions

View File

@@ -2,10 +2,22 @@ package hn
import (
"net/http"
"time"
"github.com/flosch/pongo2"
"github.com/labstack/echo"
)
func indexHandler(c echo.Context) error {
return c.Render(http.StatusOK, "index", nil)
tc := pongo2.Context{
"time": time.Now().UTC().Format(time.RFC3339Nano),
}
return c.Render(http.StatusOK, "index.html", tc)
}
func aboutHandler(c echo.Context) error {
tc := pongo2.Context{
"time": time.Now().UTC().Format(time.RFC3339Nano),
}
return c.Render(http.StatusOK, "about.html", tc)
}