Support subdir in baseurl.
authorNate Finch <nate.finch@gmail.com>
Fri, 22 Aug 2014 11:59:59 +0000 (07:59 -0400)
committerspf13 <steve.francia@gmail.com>
Mon, 25 Aug 2014 15:51:51 +0000 (11:51 -0400)
commita31edb3388606eb231261780d91e1324c50b2953
tree3b4189b0240765210b3fce4525665b28d209f5d4
parent4b979b17cc3af0d6da3026a2ca02b525133b6d3f
Support subdir in baseurl.

Mainly this was a change to helpers.MakePermalink, but to get the local server to run correctly,
we needed to redirect the path of the request from /foo to /.  In addition, I added tests for the
server's code for fixing up the base url with different config file & CLI options.
commands/server.go
commands/server_test.go [new file with mode: 0644]
helpers/helpers_test.go
helpers/url.go
hugolib/page_permalink_test.go