hugo/hugolib
Bjørn Erik Pedersen ae742cb1bd Fix language params handling
This fixes some issues with language params handling by separating params from configuration values per language.

This means that you can now do this:

```toml
[languages]
[languages.en]
languageName = "English"
weight = 1
title = "My Cool Site"
[languages.en.params]
myParam = "Hi!"
```

This is not a breaking change, but the above is a less suprising way of configuring custom params.

It also fixes some hard-to-debug corner-cases in multilingual sites.

Fixes #4356
Fixes #4352
2018-01-30 18:53:07 +01:00
..
testdata
404_test.go
alias.go
alias_test.go
author.go
case_insensitive_test.go
config.go hugolib: Deprecate useModTimeAsFallback 2018-01-29 13:52:04 +01:00
config_test.go
datafiles_test.go
disableKinds_test.go
embedded_shortcodes_test.go
fileInfo.go Fix handling of top-level page bundles 2018-01-27 19:13:34 +01:00
fileInfo_test.go
gitinfo.go
hugo_info.go
hugo_sites.go hugolib: Extract the Fast Render Mode logic into a method 2018-01-30 10:49:24 +01:00
hugo_sites_build.go Add headless bundle support 2018-01-24 09:00:21 +01:00
hugo_sites_build_test.go Fix language params handling 2018-01-30 18:53:07 +01:00
hugo_sites_multihost_test.go
hugolib.debug
media.go
menu.go hugolib: Remove unused code 2018-01-25 17:14:03 +01:00
menu_test.go
multilingual.go Fix language params handling 2018-01-30 18:53:07 +01:00
node_as_page_test.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
page.go Fix handling of top-level page bundles 2018-01-27 19:13:34 +01:00
page_bundler.go
page_bundler_capture.go Add a way to disable one or more languages 2018-01-26 14:04:14 +01:00
page_bundler_capture_test.go Fix handling of top-level page bundles 2018-01-27 19:13:34 +01:00
page_bundler_handlers.go hugolib: Remove unused code 2018-01-25 17:14:03 +01:00
page_bundler_test.go Fix handling of top-level page bundles 2018-01-27 19:13:34 +01:00
page_collections.go hugolib: Remove unused code 2018-01-25 17:14:03 +01:00
page_collections_test.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
page_output.go layout: Respect Type and Layout for list template selection 2018-01-14 19:59:51 +01:00
page_paths.go Remove and update deprecation status 2018-01-25 10:22:11 +01:00
page_paths_test.go
page_permalink_test.go
page_resource.go
page_taxonomy_test.go
page_test.go Fix "date" page param 2018-01-26 09:17:27 +01:00
page_time_integration_test.go
pageCache.go
pageCache_test.go
pageGroup.go
pageGroup_test.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
pages_related.go
pages_related_test.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
pageSort.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
pageSort_test.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
pagesPrevNext.go
pagesPrevNext_test.go
pagination.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
pagination_test.go
path_separators_test.go
permalinker.go
permalinks.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
permalinks_test.go
prune_resources.go
robotstxt_test.go
rss_test.go
scratch.go
scratch_test.go
shortcode.go
shortcode_test.go
shortcodeparser.go
shortcodeparser_test.go
site.go hugolib: Extract the Fast Render Mode logic into a method 2018-01-30 10:49:24 +01:00
site_benchmark_test.go Add a GetPage to the site benchmarks 2018-01-24 09:08:26 +01:00
site_output.go Remove and update deprecation status 2018-01-25 10:22:11 +01:00
site_output_test.go
site_render.go hugolib: Extract the Fast Render Mode logic into a method 2018-01-30 10:49:24 +01:00
site_sections.go
site_sections_test.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
site_stats_test.go
site_test.go hugolib: Remove unused code 2018-01-25 17:14:03 +01:00
site_url_test.go Support uglyURLs per section 2018-01-12 10:39:09 +01:00
siteJSONEncode_test.go
sitemap.go
sitemap_test.go
taxonomy.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
taxonomy_test.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
template_engines_test.go
template_test.go
testhelpers_test.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
translations.go