hugo/hugolib
Bjørn Erik Pedersen a07293cf97 Create a Node map to get proper node translations
In a multi-language setup, before this commit the Node's Translations() method
would return some "dummy nodes" that would point to the correct page (Permalink),
but would not be the same as the node it points to -- it would not have the translated
title etc.

The node creation is, however, so mingled with rendering, whihc is too early to have any global state,
so the nodes has to be split in a prepare and a render phase. This commits does that with as small
a change as possible. This implementation is a temp solution until we fix #2297.

Updates #2309
2016-09-06 18:32:19 +03:00
..
author.go Fix copyright headers in source files 2015-12-07 19:57:01 +01:00
benchmark_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
config.go Remove unused Multilingual Viper default 2016-09-06 18:32:19 +03:00
config_test.go Make taxonomies configurable per language 2016-09-06 18:32:17 +03:00
datafiles_test.go Introduce HugoSites type 2016-09-06 18:32:16 +03:00
embedded_shortcodes_test.go Fix the shortcode ref tests 2016-09-06 18:32:18 +03:00
handler_base.go Fix copyright headers in source files 2015-12-07 19:57:01 +01:00
handler_file.go helpers: Remove ToReader funcs 2016-06-25 17:57:05 -05:00
handler_meta.go Add parent as owner to Site 2016-09-06 18:32:18 +03:00
handler_page.go Multilingual TODO-fixes, take 1 2016-09-06 18:32:18 +03:00
handler_test.go Improve language handling in URLs 2016-09-06 18:32:18 +03:00
hugo_info.go Move HugoSites to hugolib 2016-09-06 18:32:16 +03:00
hugo_sites.go Create a Node map to get proper node translations 2016-09-06 18:32:19 +03:00
hugo_sites_test.go Create a Node map to get proper node translations 2016-09-06 18:32:19 +03:00
i18n.go Optimize the multilanguage build process 2016-09-06 18:32:16 +03:00
media.go Fix copyright headers in source files 2015-12-07 19:57:01 +01:00
menu.go Spring cleaning of the menu code 2016-03-23 00:29:39 +01:00
menu_test.go Create a Node map to get proper node translations 2016-09-06 18:32:19 +03:00
multilingual.go Add parent as owner to Site 2016-09-06 18:32:18 +03:00
node.go Create a Node map to get proper node translations 2016-09-06 18:32:19 +03:00
node_test.go Revert "Add Node.ID" 2016-04-12 18:11:52 +02:00
page.go Add IsTranslated to Node and Page 2016-09-06 18:32:19 +03:00
page_permalink_test.go Make it possible to configure Blackfroday per language 2016-09-06 18:32:17 +03:00
page_taxonomy_test.go hugolib: Fix some more Golint warnings 2016-03-23 10:10:28 +01:00
page_test.go Fix some corner cases in revised summary handling 2016-09-06 18:32:18 +03:00
page_time_integration_test.go hugoblib: Clean up the time tests 2016-03-24 13:30:08 +01:00
pageCache.go Apply gofmt -s 2016-02-06 13:09:52 +01:00
pageCache_test.go hugolib: Some more GoLint fixes 2016-03-24 14:11:04 +01:00
pageGroup.go hugolib: Add GroupByExpireDate function 2016-06-14 15:45:26 +02:00
pageGroup_test.go hugolib: Add GroupByExpireDate function 2016-06-14 15:45:26 +02:00
pageSort.go Add Translations and AllTranslations methods to Page 2016-09-06 18:32:15 +03:00
pageSort_test.go Make it possible to configure Blackfroday per language 2016-09-06 18:32:17 +03:00
pagesPrevNext.go huglib: Add even more missing GoDoc 2016-04-07 16:05:23 +02:00
pagesPrevNext_test.go hugolib: Remove unused code 2016-03-14 15:41:03 +01:00
pagination.go Add Translations and AllTranslations to Node 2016-09-06 18:32:16 +03:00
pagination_test.go Create a Node map to get proper node translations 2016-09-06 18:32:19 +03:00
path_separators_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
path_separators_windows_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
permalinks.go Add multilingual support in Hugo 2016-09-06 18:32:15 +03:00
permalinks_test.go hugolib: Some more unexports 2016-03-25 03:12:31 +01:00
planner.go Add parent as owner to Site 2016-09-06 18:32:18 +03:00
redis.cn.md [Docs] Copyediting 2015-01-28 18:02:40 -07:00
robotstxt_test.go Improve language handling in URLs 2016-09-06 18:32:18 +03:00
rss_test.go Improve language handling in URLs 2016-09-06 18:32:18 +03:00
scratch.go Do not use defer for unlocking in Scratch 2016-03-24 16:03:31 +01:00
scratch_test.go Be explicit about the type in Scratch test 2016-03-24 19:57:26 +01:00
shortcode.go Make it possible to configure Blackfroday per language 2016-09-06 18:32:17 +03:00
shortcode_test.go Improve language handling in URLs 2016-09-06 18:32:18 +03:00
shortcodeparser.go Fix copyright headers in source files 2015-12-07 19:57:01 +01:00
shortcodeparser_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
site.go Create a Node map to get proper node translations 2016-09-06 18:32:19 +03:00
site_show_plan_test.go Make the check command work in multilingual mode 2016-09-06 18:32:18 +03:00
site_test.go Render main content language in root by default 2016-09-06 18:32:18 +03:00
site_url_test.go Improve language handling in URLs 2016-09-06 18:32:18 +03:00
siteJSONEncode_test.go hugolib: Fix Java-styled all-caps consts 2016-03-22 23:59:07 +01:00
sitemap.go hugolib: Fix some more Golint warnings 2016-03-23 10:10:28 +01:00
sitemap_test.go Render main content language in root by default 2016-09-06 18:32:18 +03:00
summary.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
taxonomy.go Make ByCount sort consistently 2016-04-02 22:59:10 +02:00
taxonomy_test.go Make taxonomies configurable per language 2016-09-06 18:32:17 +03:00
translations.go Multilingual TODO-fixes, take 1 2016-09-06 18:32:18 +03:00