hugo/docs
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
..
archetypes Creating a showcase archetype to make for easier showcase additions 2014-08-26 12:27:43 -04:00
content Fix RelPermalink() and Urls in menus vs canonifyUrls 2015-01-23 14:13:00 +01:00
layouts [Docs] New testimonials and press coverage 2015-01-19 04:16:54 -07:00
static [Docs] New testimonials and press coverage 2015-01-19 04:16:54 -07:00
config.toml [Docs] Adjust sidebar menu width and capitalization 2015-01-17 00:11:17 -07:00