hugo/commands
bep beaa8b1bca Add support for URLs relative to context root
Setting `RelativeURLs` to `true` will make all relative URLs in the site *really* relative.

And will do so with speed.

So:

In `/post/myblogpost.html`:

`/mycss.css` becomes `../mycss.css`

The same in `/index.html` will become:

`./mycss.css` etc.

Note that absolute URLs will not be touched (either external resources, or URLs constructed with `BaseURL`).

The speediness is about the same as before:

```
benchmark                    old ns/op     new ns/op     delta
BenchmarkAbsURL              17462         18164         +4.02%
BenchmarkAbsURLSrcset        18842         19632         +4.19%
BenchmarkXMLAbsURLSrcset     18643         19313         +3.59%
BenchmarkXMLAbsURL           9283          9656          +4.02%

benchmark                    old allocs     new allocs     delta
BenchmarkAbsURL              24             28             +16.67%
BenchmarkAbsURLSrcset        29             32             +10.34%
BenchmarkXMLAbsURLSrcset     27             30             +11.11%
BenchmarkXMLAbsURL           12             14             +16.67%

benchmark                    old bytes     new bytes     delta
BenchmarkAbsURL              3154          3404          +7.93%
BenchmarkAbsURLSrcset        2376          2573          +8.29%
BenchmarkXMLAbsURLSrcset     2569          2763          +7.55%
BenchmarkXMLAbsURL           1888          1998          +5.83%

```

Fixes #1104
Fixes #622
Fixes #937
Fixes #157
2015-05-16 00:11:44 +02:00
..
benchmark.go Add memprofile to pprof benchmark 2015-02-05 15:48:09 +01:00
check.go Hugo config abstracted into a general purpose config library called "Viper". 2014-04-05 01:40:33 -04:00
convert.go Fix some Go Lint errors 2015-03-06 15:58:14 +01:00
hugo.go Add support for URLs relative to context root 2015-05-16 00:11:44 +02:00
limit_darwin.go Adding support for logging & verbose logging. Consolidation of error handling. Integration of jWalterWeatherman library. Fixed #137 2014-03-31 13:23:34 -04:00
limit_others.go Fix build 2014-02-18 18:40:55 -05:00
list.go Added a new command hugo list drafts and hugo list future 2014-11-19 16:24:30 -05:00
list_config.go Quote strings in hugo config output 2015-02-17 11:51:43 +01:00
new.go Allow forward slashes in Hugo new on Windows 2015-05-12 18:12:58 +02:00
new_test.go Allow forward slashes in Hugo new on Windows 2015-05-12 18:12:58 +02:00
server.go Make sure that complete server URL is logged on startup 2015-05-09 08:03:06 +02:00
server_test.go Correct initialisms as suggested by golint 2015-03-11 21:55:00 +01:00
undraft.go add undraft command 2015-05-08 22:18:51 -04:00
undraft_test.go add undraft command 2015-05-08 22:18:51 -04:00
version.go Refactor Hugo version 2015-03-18 12:23:13 +01:00