hugo/hugolib
tummychow 2e954d8551 Fix permalinks to subdomains
If you don't have access to the root domain of your site (eg a GitHub project
page) and you try to generate custom permalinks, they must begin with a slash.
Go's URL resolution library sees the leading slash and thinks "this URL starts
at the root", just like a filesystem - so it discards your subdomain and maps
all custom permalinks from the root of your site. Fine if you control the root
domain, not so useful if you don't.

Removing the check for a leading slash fixes this problem. You can now specify
custom permalinks that do not start with a slash, and they will map safely
regardless of what subdomain you upload the generated site under.

Tests have been updated for this commit so that they continue to function.
2014-04-26 23:01:28 -06:00
..
benchmark_test.go
menu.go Creating site menu configuration and have the docs site use it 2014-04-24 16:11:08 -06:00
node.go new menus system including active link & nesting 2014-04-23 02:59:19 -04:00
page.go Creating site menu configuration and have the docs site use it 2014-04-24 16:11:08 -06:00
page_permalink_test.go Fixing all tests to pass with new Viper Config 2014-04-07 11:44:51 -04:00
page_taxonomy_test.go Renamed Indexes to Taxonomies. Old template and config parameters still work. 2014-04-09 17:15:04 -04:00
page_test.go
page_time_integration_test.go
pageSort.go
path_seperators_test.go
path_seperators_windows_test.go Add Disqus support out of the box. Move template/bundle into hugolib. 2014-04-23 02:53:12 -04:00
permalinks.go Fix permalinks to subdomains 2014-04-26 23:01:28 -06:00
permalinks_test.go Fix permalinks to subdomains 2014-04-26 23:01:28 -06:00
planner.go
redis.cn.md
rss_test.go Fixing all tests to pass with new Viper Config 2014-04-07 11:44:51 -04:00
shortcode.go Add Disqus support out of the box. Move template/bundle into hugolib. 2014-04-23 02:53:12 -04:00
shortcode_test.go Fixing some bugs introduced in prior few commits. Tests now pass. 2014-04-24 10:18:47 -06:00
site.go Creating site menu configuration and have the docs site use it 2014-04-24 16:11:08 -06:00
site_show_plan_test.go Fix test to not fail when order is different, but slice contents are the same. 2014-04-08 21:57:25 -04:00
site_test.go Renamed Indexes to Taxonomies. Old template and config parameters still work. 2014-04-09 17:15:04 -04:00
site_url_test.go Renamed Indexes to Taxonomies. Old template and config parameters still work. 2014-04-09 17:15:04 -04:00
siteinfo_test.go Fixing all tests to pass with new Viper Config 2014-04-07 11:44:51 -04:00
summary.go
taxonomy.go Renamed Indexes to Taxonomies. Old template and config parameters still work. 2014-04-09 17:15:04 -04:00
taxonomy_test.go Renamed Indexes to Taxonomies. Old template and config parameters still work. 2014-04-09 17:15:04 -04:00
template.go Add Disqus support out of the box. Move template/bundle into hugolib. 2014-04-23 02:53:12 -04:00
template_embedded.go Add Disqus support out of the box. Move template/bundle into hugolib. 2014-04-23 02:53:12 -04:00
template_test.go Add Disqus support out of the box. Move template/bundle into hugolib. 2014-04-23 02:53:12 -04:00