diff --git a/.gitignore b/.gitignore index d9fd17d0..0890611c 100644 --- a/.gitignore +++ b/.gitignore @@ -33,10 +33,12 @@ _testmain.go website/public website/make website/Makefile -website/marathon* # node.js web dependencies node_modules # code coverage output files *.coverprofile + +# glide +vendor diff --git a/middleware/logger.go b/middleware/logger.go index 88c1d0a7..8aa6f52c 100644 --- a/middleware/logger.go +++ b/middleware/logger.go @@ -8,7 +8,9 @@ import ( "github.com/labstack/gommon/color" ) -const loggerFormat = "%s %s %s %s %s %d" +const ( + format = "%s %s %s %s %s %d" +) // Logger returns a Middleware that logs requests. func Logger() echo.MiddlewareFunc { @@ -50,7 +52,7 @@ func Logger() echo.MiddlewareFunc { code = color.Cyan(n) } - logger.Info(loggerFormat, remoteAddr, method, path, code, stop.Sub(start), size) + logger.Infof(format, remoteAddr, method, path, code, stop.Sub(start), size) return nil } } diff --git a/website/config.json b/website/config.json index 17a1302f..ab6d64ee 100644 --- a/website/config.json +++ b/website/config.json @@ -1,5 +1,5 @@ { - "baseurl": "http://labstack.com/echo", + "baseurl": "https://labstack.com/echo", "languageCode": "en-us", "title": "Echo", "canonifyurls": true, diff --git a/website/content/index.md b/website/content/index.md index e9d0b229..e8b1c64d 100644 --- a/website/content/index.md +++ b/website/content/index.md @@ -2,7 +2,7 @@ title: Index --- -# Echo +# ![Echo](/images/echo.svg) Echo A fast and unfancy micro web framework for Go. diff --git a/website/layouts/partials/header.html b/website/layouts/partials/header.html index 66789ac0..82169092 100644 --- a/website/layouts/partials/header.html +++ b/website/layouts/partials/header.html @@ -1,12 +1,12 @@
- - {{ .Site.Title }} + + LabStack