hugo/docs/content/extras
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
..
aliases.md [Docs] More copyediting 2015-01-17 00:45:53 -07:00
builders.md [Docs] More copyediting 2015-01-17 00:45:53 -07:00
comments.md Docs copyediting: Add more external URLs; add backticks, etc. 2014-12-27 00:50:08 -07:00
crossreferences.md Documentation for ref and relref. 2014-12-18 22:18:37 -05:00
highlighting.md Documentation for ref and relref. 2014-12-18 22:18:37 -05:00
livereload.md Some more random copyediting of Hugo docs 2015-01-09 11:51:15 -07:00
menus.md Fix RelPermalink() and Urls in menus vs canonifyUrls 2015-01-23 14:13:00 +01:00
permalinks.md Revert "[Docs] Use <dl> for definition lists of variables" 2015-01-19 11:44:14 -07:00
shortcodes.md Documentation for ref and relref. 2014-12-18 22:18:37 -05:00
toc.md Documentation for ref and relref. 2014-12-18 22:18:37 -05:00
urls.md [Docs] Document the new (temp?) default of canonifyurls = false 2015-01-22 18:04:07 -07:00