hugo/hugolib
Bjørn Erik Pedersen c6b599a06d hugolib: Fix "borrow content from another language" issue
If a content file contains shortcode(s), we have logic in place to re-render it per output format.

We also have logic in place that avoids making a copy of the content used for this process if we don't need it.

This was before this commit limited to server mode and if the page should be output to multiple formats.

But there is a third case: If a site (language) borrows and renders `.Content` from another language. This would, before this commit, behave oddly for content with shortcodes.

Fixes #4986
2018-07-23 20:12:41 +02:00
..
filesystems resource/scss: Add IncludePaths config option 2018-07-20 17:50:44 +02:00
pagemeta
paths Add Hugo Piper with SCSS support and much more 2018-07-06 11:46:12 +02:00
testdata
testsite/content
404_test.go
alias.go Add Hugo Piper with SCSS support and much more 2018-07-06 11:46:12 +02:00
alias_test.go Add Hugo Piper with SCSS support and much more 2018-07-06 11:46:12 +02:00
author.go
case_insensitive_test.go Add support for theme composition and inheritance 2018-06-10 23:55:20 +02:00
config.go hugolib: Only set 'allThemes' if there are themes in the config file 2018-07-15 16:13:48 +02:00
config_test.go Add configurable ref/relref error handling and notFoundURL 2018-07-19 14:32:43 +02:00
datafiles_test.go Add support for theme composition and inheritance 2018-06-10 23:55:20 +02:00
disableKinds_test.go Simplify .Site.GetPage etc. 2018-07-18 00:07:20 +02:00
embedded_shortcodes_test.go
embedded_templates_test.go
fileInfo.go
gitinfo.go
hugo_info.go
hugo_info_test.go
hugo_sites.go Add configurable ref/relref error handling and notFoundURL 2018-07-19 14:32:43 +02:00
hugo_sites_build.go Flush partialCached cache on rebuilds 2018-07-11 20:40:04 +02:00
hugo_sites_build_failures_test.go
hugo_sites_build_test.go Simplify .Site.GetPage etc. 2018-07-18 00:07:20 +02:00
hugo_sites_multihost_test.go Simplify .Site.GetPage etc. 2018-07-18 00:07:20 +02:00
hugo_themes_test.go Add support for theme composition and inheritance 2018-06-10 23:55:20 +02:00
language_content_dir_test.go Add optional lang as argument to rel/relref 2018-07-18 00:07:20 +02:00
media.go
menu.go
menu_test.go
multilingual.go Add support for theme composition and inheritance 2018-06-10 23:55:20 +02:00
orderedMap.go
orderedMap_test.go
page.go hugolib: Fix "borrow content from another language" issue 2018-07-23 20:12:41 +02:00
page_bundler.go Add Hugo Piper with SCSS support and much more 2018-07-06 11:46:12 +02:00
page_bundler_capture.go Add support for theme composition and inheritance 2018-06-10 23:55:20 +02:00
page_bundler_capture_test.go resource/scss: Add IncludePaths config option 2018-07-20 17:50:44 +02:00
page_bundler_handlers.go Add Hugo Piper with SCSS support and much more 2018-07-06 11:46:12 +02:00
page_bundler_test.go resource/scss: Add IncludePaths config option 2018-07-20 17:50:44 +02:00
page_collections.go hugolib: Print a WARNING about relative non-relative ref/relref matches 2018-07-21 11:42:07 +02:00
page_collections_test.go Enable test case fixed by commit 501543d4 2018-07-19 20:40:50 +02:00
page_output.go media: Allow multiple file suffixes per media type 2018-07-10 22:13:52 +02:00
page_paths.go media: Allow multiple file suffixes per media type 2018-07-10 22:13:52 +02:00
page_paths_test.go media: Allow multiple file suffixes per media type 2018-07-10 22:13:52 +02:00
page_permalink_test.go
page_resource.go
page_taxonomy_test.go
page_test.go Add a newScratch template func 2018-07-06 17:51:38 +02:00
page_time_integration_test.go
page_without_content.go
pageCache.go
pageCache_test.go
pageGroup.go
pageGroup_test.go
pages_language_merge.go hugolib: Allow untyped nil to be merged in lang.Merge 2018-07-21 11:41:23 +02:00
pages_language_merge_test.go hugolib: Allow untyped nil to be merged in lang.Merge 2018-07-21 11:41:23 +02:00
pages_related.go
pages_related_test.go
pageSort.go
pageSort_test.go
pagesPrevNext.go
pagesPrevNext_test.go
pagination.go Add Hugo Piper with SCSS support and much more 2018-07-06 11:46:12 +02:00
pagination_test.go media: Allow multiple file suffixes per media type 2018-07-10 22:13:52 +02:00
path_separators_test.go
permalinker.go
permalinks.go
permalinks_test.go
prune_resources.go Add Hugo Piper with SCSS support and much more 2018-07-06 11:46:12 +02:00
resource_chain_test.go resource/scss: Add IncludePaths config option 2018-07-20 17:50:44 +02:00
robotstxt_test.go
rss_test.go
shortcode.go Add optional lang as argument to rel/relref 2018-07-18 00:07:20 +02:00
shortcode_test.go Add configurable ref/relref error handling and notFoundURL 2018-07-19 14:32:43 +02:00
shortcodeparser.go hugolib: Allow forward slash in shortcode names 2018-06-28 16:06:16 +02:00
shortcodeparser_test.go hugolib: Allow forward slash in shortcode names 2018-06-28 16:06:16 +02:00
site.go hugolib: Create an adapter from old to new getPage 2018-07-19 18:26:10 +02:00
site_benchmark_test.go
site_output.go
site_output_test.go Simplify .Site.GetPage etc. 2018-07-18 00:07:20 +02:00
site_render.go media: Allow multiple file suffixes per media type 2018-07-10 22:13:52 +02:00
site_sections.go Revert "Consider root and current section's content type if set in front matter" 2018-07-09 10:29:18 +02:00
site_sections_test.go Simplify .Site.GetPage etc. 2018-07-18 00:07:20 +02:00
site_stats_test.go
site_test.go Increase refLinker test coverage 2018-07-20 07:02:41 +02:00
site_url_test.go Simplify .Site.GetPage etc. 2018-07-18 00:07:20 +02:00
siteJSONEncode_test.go
sitemap.go
sitemap_test.go
taxonomy.go
taxonomy_test.go Simplify .Site.GetPage etc. 2018-07-18 00:07:20 +02:00
template_engines_test.go
template_test.go
testhelpers_test.go resource/scss: Add IncludePaths config option 2018-07-20 17:50:44 +02:00
translations.go