hugo/hugolib
Bjørn Erik Pedersen 29ccb36069 Fix /static performance regression from Hugo 0.103.0
In `v0.103.0` we added support for `resources.PostProcess` for all file types, not just HTML. We had benchmarks that said we were fine in that department, but those did not consider the static file syncing.

This fixes that by:

* Making sure that the /static syncer always gets its own file system without any checks for the post process token.
* For dynamic files (e.g. rendered HTML files) we add an additional check to make sure that we skip binary files (e.g. images)

Fixes #10328
2022-09-26 19:02:25 +02:00
..
assets/images
filesystems
paths Fix relURL with leading slash when baseURL includes a subdirectory 2022-06-13 11:40:25 +02:00
testdata Add some basic security policies with sensible defaults 2021-12-16 09:40:22 +01:00
testsite
404_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
alias.go
alias_test.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
breaking_changes_test.go all: Fix minor typos 2020-12-16 12:11:32 +01:00
cascade_test.go
codeowners.go
collections.go
collections_test.go
config.go
config_test.go helpers: Fix panic with invalid defaultMarkdownHandler 2022-06-04 17:47:20 +02:00
configdir_test.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
content_factory.go
content_factory_test.go
content_map.go
content_map_page.go Fix panic with markdownify/RenderString with shortcode on Page with no content file 2022-06-01 12:04:55 +02:00
content_map_test.go
content_render_hooks_test.go Make .RenderString render shortcodes 2022-05-30 11:32:55 +02:00
datafiles_test.go
dates_test.go
disableKinds_test.go
embedded_shortcodes_test.go
embedded_templates_test.go
fileInfo.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
fileInfo_test.go tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
gitinfo.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
hugo_modules_test.go
hugo_sites.go
hugo_sites_build.go
hugo_sites_build_errors_test.go errors: Misc improvements 2022-05-14 13:40:56 +02:00
hugo_sites_build_test.go Remove Blackfriday markdown engine 2022-05-29 11:50:58 +02:00
hugo_sites_multihost_test.go
hugo_sites_rebuild_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
hugo_smoke_test.go Make the baseline benchmark's test files stable 2022-06-30 12:36:55 +02:00
image_test.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
integrationtest_builder.go helpers: Fix panic with invalid defaultMarkdownHandler 2022-06-04 17:47:20 +02:00
language_content_dir_test.go
language_test.go
menu_test.go
minify_publisher_test.go
mount_filters_test.go
multilingual.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
page.go Fix shortcode parser regression with quoted param values 2022-09-01 12:13:23 +02:00
page__common.go Fix panic with markdownify/RenderString with shortcode on Page with no content file 2022-06-01 12:04:55 +02:00
page__content.go
page__data.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
page__menus.go Simplify "active menu" logic for section menus 2021-07-20 17:50:59 +02:00
page__meta.go Remove Blackfriday markdown engine 2022-05-29 11:50:58 +02:00
page__new.go
page__output.go Make the RenderString content provider fix more general 2022-01-27 11:51:13 +01:00
page__paginator.go
page__paths.go
page__per_output.go
page__position.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
page__ref.go
page__tree.go
page_kinds.go
page_permalink_test.go
page_test.go
page_unwrap.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
page_unwrap_test.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
pagebundler_test.go
pagecollections.go
pagecollections_test.go
pages_capture.go hugofs: Make FileMeta a struct 2021-07-15 17:14:26 +02:00
pages_capture_test.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
pages_language_merge_test.go tpl/lang: Handle nil values in lang.Merge 2022-04-23 22:22:50 +02:00
pages_process.go
pages_test.go
paginator_test.go
permalinker.go
prune_resources.go
renderstring_test.go Fix panic with markdownify/RenderString with shortcode on Page with no content file 2022-06-01 12:04:55 +02:00
resource_chain_test.go Support PostProcess for all file types 2022-09-14 19:09:20 +02:00
robotstxt_test.go
rss_test.go
securitypolicies_test.go Add resources.GetRemote 2021-12-17 09:33:51 +01:00
shortcode.go
shortcode_page.go Add render template hooks for links and images 2019-12-18 11:44:40 +01:00
shortcode_test.go Fix shortcode parser regression with quoted param values 2022-09-01 12:13:23 +02:00
site.go Add clock cli flag 2022-05-08 16:56:26 +02:00
site_benchmark_new_test.go
site_output.go
site_output_test.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
site_render.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
site_sections.go
site_sections_test.go
site_stats_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
site_test.go
site_url_test.go
siteJSONEncode_test.go
sitemap_test.go
taxonomy.go
taxonomy_test.go
template_test.go
testhelpers_test.go Support PostProcess for all file types 2022-09-14 19:09:20 +02:00
translations.go