hugo/resources
Bjørn Erik Pedersen ba1d0051b4 media: Make Type comparable
So we can use it and output.Format as map key etc.

This commit also fixes the media.Type implementation so it does not need to mutate itself to handle different suffixes for the same MIME type, e.g. jpg vs. jpeg.

This means that there are no Suffix or FullSuffix on media.Type anymore.

Fixes #8317
Fixes #8324
2021-03-14 15:21:54 +01:00
..
images media: Make Type comparable 2021-03-14 15:21:54 +01:00
internal all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
jsconfig all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
page media: Make Type comparable 2021-03-14 15:21:54 +01:00
postpub media: Make Type comparable 2021-03-14 15:21:54 +01:00
resource images: Add images.Overlay filter 2020-12-17 09:14:18 +01:00
resource_factories all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
resource_transformers deps: Update to esbuild v0.9.0 2021-03-14 11:51:25 +01:00
testdata exif: Allow more spacing characters in strings 2021-03-13 21:20:10 +01:00
image.go images: Add images.Overlay filter 2020-12-17 09:14:18 +01:00
image_cache.go all: Fix minor typos 2020-12-16 12:11:32 +01:00
image_test.go images: Add images.Overlay filter 2020-12-17 09:14:18 +01:00
post_publish.go Add basic "post resource publish support" 2020-04-07 21:59:20 +02:00
resource.go all: Fix minor typos 2020-12-16 12:11:32 +01:00
resource_cache.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
resource_cache_test.go Improve the server assets cache invalidation logic 2019-08-13 18:09:46 +02:00
resource_metadata.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
resource_metadata_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
resource_spec.go media: Make Type comparable 2021-03-14 15:21:54 +01:00
resource_test.go Fix Resource.ResourceType so it always returns MIME's main type 2020-12-17 22:20:12 +01:00
testhelpers_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
transform.go Allow Dart Sass transformations to be cached on disk 2020-12-31 11:32:20 +01:00
transform_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00