Fix redirect-loop for Hugo server

An extra slash was added to the path if baseUrl had a sub-directory, causing
infinite redirect loop in Go's HTTP server.

Fixes #510