hugo/hugolib
Bjørn Erik Pedersen 288c396439
hugolib: Fix some shortcode vs .Content corner cases
This is a follow-up to #4632. There were some assumptions in that implementation that did not hold water in all situations.

This commit simplifies the content lazy initalization making it more robust.

Fixes #4664
2018-04-25 08:56:46 +02:00
..
pagemeta
testdata
testsite/content
404_test.go
alias.go
alias_test.go
author.go
case_insensitive_test.go Allow themes to define output formats, media types and params 2018-03-21 09:22:19 +01:00
config.go Make .Content (almost) always available in shortcodes 2018-04-21 22:02:56 +02:00
config_test.go Allow themes to define output formats, media types and params 2018-03-21 09:22:19 +01:00
datafiles_test.go
disableKinds_test.go Add support for a content dir set per language 2018-04-02 08:06:21 +02:00
embedded_shortcodes_test.go Make .Content (almost) always available in shortcodes 2018-04-21 22:02:56 +02:00
fileInfo.go Add support for a content dir set per language 2018-04-02 08:06:21 +02:00
gitinfo.go
hugo_info.go
hugo_info_test.go
hugo_sites.go hugolib: Fix some shortcode vs .Content corner cases 2018-04-25 08:56:46 +02:00
hugo_sites_build.go hugolib: Fix some shortcode vs .Content corner cases 2018-04-25 08:56:46 +02:00
hugo_sites_build_failures_test.go hugolib: Fix freeze in invalid front matter error case 2018-03-24 10:06:58 +01:00
hugo_sites_build_test.go Make .Content (almost) always available in shortcodes 2018-04-21 22:02:56 +02:00
hugo_sites_multihost_test.go
language_content_dir_test.go Add support for a content dir set per language 2018-04-02 08:06:21 +02:00
media.go
menu.go
menu_test.go Add support for a content dir set per language 2018-04-02 08:06:21 +02:00
multilingual.go Add support for a content dir set per language 2018-04-02 08:06:21 +02:00
orderedMap.go hugolib: Defer the unlock in orderedMap.Add 2018-04-22 21:32:05 +02:00
orderedMap_test.go hugolib: Process and render shortcodes in their order of appearance 2018-04-22 17:40:51 +02:00
page.go hugolib: Fix some shortcode vs .Content corner cases 2018-04-25 08:56:46 +02:00
page_bundler.go Add support for a content dir set per language 2018-04-02 08:06:21 +02:00
page_bundler_capture.go Add support for a content dir set per language 2018-04-02 08:06:21 +02:00
page_bundler_capture_test.go Fix two tests that are broken on Windows 2018-04-05 08:35:06 +02:00
page_bundler_handlers.go Make .Content (almost) always available in shortcodes 2018-04-21 22:02:56 +02:00
page_bundler_test.go hugolib: Add .Page.BundleType 2018-04-23 08:41:19 +02:00
page_collections.go Add support for a content dir set per language 2018-04-02 08:06:21 +02:00
page_collections_test.go
page_output.go
page_paths.go
page_paths_test.go
page_permalink_test.go
page_resource.go
page_taxonomy_test.go
page_test.go hugolib: Fix some shortcode vs .Content corner cases 2018-04-25 08:56:46 +02:00
page_time_integration_test.go
page_without_content.go Make .Content (almost) always available in shortcodes 2018-04-21 22:02:56 +02:00
pageCache.go
pageCache_test.go
pageGroup.go
pageGroup_test.go
pages_language_merge.go
pages_language_merge_test.go Add language merge support for Pages in resource.Resources 2018-04-19 16:23:00 +02:00
pages_related.go
pages_related_test.go
pageSort.go Make .Content (almost) always available in shortcodes 2018-04-21 22:02:56 +02:00
pageSort_test.go hugolib: Fix some shortcode vs .Content corner cases 2018-04-25 08:56:46 +02:00
pagesPrevNext.go
pagesPrevNext_test.go
pagination.go
pagination_test.go
path_separators_test.go
permalinker.go
permalinks.go
permalinks_test.go
prune_resources.go Add support for a content dir set per language 2018-04-02 08:06:21 +02:00
robotstxt_test.go
rss_test.go
scratch.go
scratch_test.go
shortcode.go hugolib: Fix some shortcode vs .Content corner cases 2018-04-25 08:56:46 +02:00
shortcode_test.go hugolib: Fix some shortcode vs .Content corner cases 2018-04-25 08:56:46 +02:00
shortcodeparser.go Allow "*/" inside commented out shortcodes 2018-04-11 22:41:48 +02:00
shortcodeparser_test.go Allow "*/" inside commented out shortcodes 2018-04-11 22:41:48 +02:00
site.go hugolib: Fix some shortcode vs .Content corner cases 2018-04-25 08:56:46 +02:00
site_benchmark_test.go
site_output.go
site_output_test.go
site_render.go Make .Content (almost) always available in shortcodes 2018-04-21 22:02:56 +02:00
site_sections.go
site_sections_test.go
site_stats_test.go
site_test.go
site_url_test.go Add support for a content dir set per language 2018-04-02 08:06:21 +02:00
siteJSONEncode_test.go
sitemap.go
sitemap_test.go
taxonomy.go
taxonomy_test.go Add support for a content dir set per language 2018-04-02 08:06:21 +02:00
template_engines_test.go
template_test.go
testhelpers_test.go Add support for a content dir set per language 2018-04-02 08:06:21 +02:00
translations.go