hugo/helpers
bep 1b42dc572a Fix RelPermalink() and Urls in menus vs canonifyUrls
canonifyUrls=true, RelPermalink and baseUrl with sub-path did not work.

This fixes that by adding a check for canonifyUrl=trues=true in RelPermalink().

So given

- baseUrl "http://somehost.com/sub/"
- the path "some-path/file.html"

For canonifyUrls=false RelPermalink() returns "/sub/some-path/file.html"
For canonifyUrls=true RelPermalink() returns "/some-path/file.html"

In the last case, the Url will be made absolute and clickable in a later step.

This commit also makes the menu urls defined in site config releative. To make them work with canonifying of urls, the context root is prepended if canonifying is turned off.

Fixes #519
Fixes #711
2015-01-23 14:13:00 +01:00
..
content.go Register rstHandler to restore experimental reST support 2015-01-21 06:41:19 -07:00
content_test.go Moved a test regarding a content.go function to a new test file content_test.go. 2015-01-09 12:42:13 +01:00
general.go Wrap comments helpers package to fit 80-column width 2014-12-26 08:07:03 -07:00
general_test.go Add more tests to general helper 2015-01-20 18:13:47 +01:00
path.go Minor polish in path/url 2015-01-20 20:45:03 +01:00
path_test.go Fix various Windows-issues 2014-12-09 09:43:15 -05:00
pygments.go Wrap comments helpers package to fit 80-column width 2014-12-26 08:07:03 -07:00
url.go Fix RelPermalink() and Urls in menus vs canonifyUrls 2015-01-23 14:13:00 +01:00
url_test.go Fix RelPermalink() and Urls in menus vs canonifyUrls 2015-01-23 14:13:00 +01:00