diff --git a/hotreload.sh b/hotreload.sh index 194d23a..fc91389 100644 --- a/hotreload.sh +++ b/hotreload.sh @@ -24,6 +24,6 @@ function cleanup() { trap cleanup EXIT sync -while inotifywait -r -e modify src/ template/; do +while inotifywait -r -e modify src/ pages/; do sync done diff --git a/template/binary_market.html b/pages/binary_market.html similarity index 100% rename from template/binary_market.html rename to pages/binary_market.html diff --git a/template/index.html b/pages/index.html similarity index 100% rename from template/index.html rename to pages/index.html diff --git a/template/login.html b/pages/login.html similarity index 100% rename from template/login.html rename to pages/login.html diff --git a/src/server.go b/src/server.go index b2d6f86..6b01c85 100644 --- a/src/server.go +++ b/src/server.go @@ -45,7 +45,7 @@ func init() { flag.Parse() e = echo.New() t = &Template{ - templates: template.Must(template.ParseGlob("template/**.html")), + templates: template.Must(template.ParseGlob("pages/**.html")), } COMMIT_LONG_SHA = execCmd("git", "rev-parse", "HEAD") COMMIT_SHORT_SHA = execCmd("git", "rev-parse", "--short", "HEAD")