hugo/hugolib
bep 16330cea91 Add nil-check to Intersect
The Intersect template-method would fail if one or both of the lists were nil (post vs page; post has tags, page has not).

This commit adds a nil-check and returns an empty result if any of the inputs are nil.

See #537
2014-10-15 12:31:22 -04:00
..
benchmark_test.go permitting empty files again. Fixing some tests to now pass. 2014-05-01 14:11:56 -04:00
menu.go Change all uses of sort.Sort to sort.Stable.Using sort.Stable ensures that even if the sort keys are the same, the order of the sort will not randomly change. Using the old sort.Sort, if you had pages with no date, the lists of those pages would randomly reorder every time you regenerate the list, causing spurious changes to the output. Now they'll always get ordered in the same way. 2014-09-09 09:22:16 -04:00
node.go Adding IsNode & IsPage functions to Page & Node 2014-08-19 21:27:13 -04:00
page.go Use md5 against the file path for uniqueness. 2014-10-07 16:45:23 -04:00
page_permalink_test.go Fix #302. Links now have trailing slashes. 2014-08-25 12:45:47 -04:00
page_taxonomy_test.go fix tags not being in lowercase, #491 2014-09-11 17:03:31 -04:00
page_test.go #462 fix, remove leading and trailing dashes from urlized slug. includes test changes 2014-10-07 17:05:11 -04:00
page_time_integration_test.go permitting empty files again. Fixing some tests to now pass. 2014-05-01 14:11:56 -04:00
pageGroup.go Making direction optional (and setting defaults) for GroupBy Pages functionality. 2014-08-29 23:51:29 -04:00
pageSort.go Change all uses of sort.Sort to sort.Stable.Using sort.Stable ensures that even if the sort keys are the same, the order of the sort will not randomly change. Using the old sort.Sort, if you had pages with no date, the lists of those pages would randomly reorder every time you regenerate the list, causing spurious changes to the output. Now they'll always get ordered in the same way. 2014-09-09 09:22:16 -04:00
path_seperators_test.go fixed #303. Adding theme support to views 2014-06-03 17:53:00 -04:00
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 #462 fix, remove leading and trailing dashes from urlized slug. includes test changes 2014-10-07 17:05:11 -04:00
permalinks_test.go permitting empty files again. Fixing some tests to now pass. 2014-05-01 14:11:56 -04:00
planner.go Refactor layout selection code 2013-10-08 18:44:15 +02:00
redis.cn.md Adding benchmark for parsing pages using unicode. 2013-08-09 17:36:32 -07:00
rss_test.go Fixing all tests to pass with new Viper Config 2014-04-07 11:44:51 -04:00
shortcode.go Use md5 against the file path for uniqueness. 2014-10-07 16:45:23 -04:00
shortcode_test.go add 'width' parameter to 'figure' shortcode 2014-10-15 12:09:26 -04:00
site.go Feed the titleized taxonomy key through string replace to replace '-' with ' ' for proper display of the taxonmy title 2014-10-07 17:01:39 -04: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 add some information to rendering errors so it's easier to tell what's failing. 2014-09-29 09:19:39 -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 Fix permalink functionality, which was broken in 62dd1d4. 2014-05-12 15:47:52 -04:00
sitemap.go Add Sitemaps config values handling 2014-05-09 23:11:33 -04:00
sitemap_test.go Add Sitemap testing 2014-05-09 23:11:42 -04:00
summary.go Adding support for logging & verbose logging. Consolidation of error handling. Integration of jWalterWeatherman library. Fixed #137 2014-03-31 13:23:34 -04:00
taxonomy.go Sort by title if dates are the same 2014-09-11 17:23:01 -04:00
taxonomy_test.go permitting empty files again. Fixing some tests to now pass. 2014-05-01 14:11:56 -04:00
template.go Add nil-check to Intersect 2014-10-15 12:31:22 -04:00
template_embedded.go add 'width' parameter to 'figure' shortcode 2014-10-15 12:09:26 -04:00
template_test.go Add nil-check to Intersect 2014-10-15 12:31:22 -04:00