hugo/docs/content
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
..
community [Docs] New testimonials and press coverage 2015-01-19 04:16:54 -07:00
content [Docs] Correct description of "Read More" links in Summaries 2015-01-20 15:45:57 -07:00
extras Fix RelPermalink() and Urls in menus vs canonifyUrls 2015-01-23 14:13:00 +01:00
meta Add dateFormat to release notes 2015-01-22 01:19:02 +01:00
overview [Docs] Add FreeBSD logo beside the FreeBSD name 2015-01-19 02:48:44 -07:00
showcase Fix EOF 2014-12-30 12:28:19 -07:00
taxonomies Revert "[Docs] Use <dl> for definition lists of variables" 2015-01-19 11:44:14 -07:00
templates Add dateFormat template function 2015-01-22 00:08:30 +01:00
themes [Docs] More random revision and copyediting 2015-01-13 20:48:44 -07:00
troubleshooting [Docs] New "Troubleshooting Overview" page 2015-01-18 13:27:09 -07:00
tutorials [Docs] Document the new (temp?) default of canonifyurls = false 2015-01-22 18:04:07 -07:00