hugo/resources
Bjørn Erik Pedersen 631d768be9 Revise the fix for shortcode vs output format nilpointer
We do lazy initialization and (potentially) reuse of an output format's rendered content. We do this evaluation when we
start a new rendering a new output format. There are, however, situation where these borders gets crossed (e.g.
accessing content from another output format). We have a check for this in place for most cases, but not the content
rendering of inner markdown blocks inside shortcodes. This patch applies that same logic to the newly introduced
RenderContent method (which is not available from the templates).

Fixes #10391
2022-10-26 13:00:21 +02:00
..
images resources/images: Fix 2 animated GIF resize issues 2022-10-04 15:38:12 +02:00
internal all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
jsconfig all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
page Revise the fix for shortcode vs output format nilpointer 2022-10-26 13:00:21 +02:00
postpub all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
resource Add resources.Copy 2022-05-25 10:35:31 +02:00
resource_factories Consolidate the glob case logic 2022-09-23 16:19:21 +02:00
resource_transformers scss: Handle single-file sourcemaps correctly 2022-09-06 10:52:28 +02:00
testdata resources/images: Fix 2 animated GIF resize issues 2022-10-04 15:38:12 +02:00
errorResource.go resources/images: Add $image.Colors 2022-09-22 15:57:35 +02:00
image.go resources/images: Add $image.Colors 2022-09-22 15:57:35 +02:00
image_cache.go Fix MediaType when reading images from cache 2022-04-16 16:36:15 +02:00
image_extended_test.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
image_test.go resources: Update golden image dithering exception list 2022-10-04 16:19:52 +02:00
integration_test.go resources: Improve error message on .Resize etc. on SVGs 2022-05-25 18:06:20 +02:00
post_publish.go Add basic "post resource publish support" 2020-04-07 21:59:20 +02:00
resource.go resources: Panic on Copy of Resource with .Err 2022-06-14 09:47:41 +02:00
resource_cache.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
resource_cache_test.go Improve the server assets cache invalidation logic 2019-08-13 18:09:46 +02:00
resource_metadata.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
resource_metadata_test.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
resource_spec.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
resource_test.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
testhelpers_test.go Some godoc adjustments and image struct renames 2022-04-27 23:53:56 +02:00
transform.go resources/images: Add $image.Colors 2022-09-22 15:57:35 +02:00
transform_test.go Support PostProcess for all file types 2022-09-14 19:09:20 +02:00