hugo/hugolib
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
..
assets/images
filesystems all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
paths hugolib/paths: Fix typo 2020-12-16 12:12:14 +01:00
testdata
testsite
404_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
alias.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
alias_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
breaking_changes_test.go all: Fix minor typos 2020-12-16 12:11:32 +01:00
cascade_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
case_insensitive_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
collections.go
collections_test.go
config.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
config_test.go media: Make Type comparable 2021-03-14 15:21:54 +01:00
configdir_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
content_map.go all: Fix minor typos 2020-12-16 12:11:32 +01:00
content_map_page.go all: Fix minor typos 2020-12-16 12:11:32 +01:00
content_map_test.go Fix Resource.ResourceType so it always returns MIME's main type 2020-12-17 22:20:12 +01:00
content_render_hooks_test.go Fix output format handling for render hooks 2021-03-09 13:26:39 +01:00
datafiles_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
disableKinds_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
embedded_shortcodes_test.go all: Fix minor typos 2020-12-16 12:11:32 +01:00
embedded_templates_test.go Add support for Google Analytics v4 2021-03-03 13:30:06 +01:00
fileInfo.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
fileInfo_test.go
gitinfo.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
hugo_modules_test.go para: Skip para test when not on CI 2020-12-23 19:47:20 +01:00
hugo_sites.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
hugo_sites_build.go Add Dart Sass support 2020-12-30 17:32:25 +01:00
hugo_sites_build_errors_test.go para: Skip para test when not on CI 2020-12-23 19:47:20 +01:00
hugo_sites_build_test.go para: Skip para test when not on CI 2020-12-23 19:47:20 +01:00
hugo_sites_multihost_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
hugo_sites_rebuild_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
hugo_smoke_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
image_test.go Add Dart Sass support 2020-12-30 17:32:25 +01:00
js_test.go github: Enable NPM tests on Windows 2021-02-01 11:32:17 +01:00
language_content_dir_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
language_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
menu_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
minify_publisher_test.go
multilingual.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
openapi_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
page.go Fix output format handling for render hooks 2021-03-09 13:26:39 +01:00
page__common.go all: Fix minor typos 2020-12-16 12:11:32 +01:00
page__content.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
page__data.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
page__menus.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
page__meta.go Fix some humanize issues 2021-02-14 18:30:59 +01:00
page__new.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
page__output.go Fix output format handling for render hooks 2021-03-09 13:26:39 +01:00
page__paginator.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
page__paths.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
page__per_output.go Fix output format handling for render hooks 2021-03-09 13:26:39 +01:00
page__position.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
page__ref.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
page__tree.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
page_kinds.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
page_permalink_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
page_test.go Add Dart Sass support 2020-12-30 17:32:25 +01:00
page_unwrap.go
page_unwrap_test.go
pagebundler_test.go media: Make Type comparable 2021-03-14 15:21:54 +01:00
pagecollections.go all: Fix minor typos 2020-12-16 12:11:32 +01:00
pagecollections_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
pages_capture.go all: Fix minor typos 2020-12-16 12:11:32 +01:00
pages_capture_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
pages_language_merge_test.go Fix BenchmarkMergeByLanguage 2020-12-09 17:47:10 +01:00
pages_process.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
pages_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
paginator_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
permalinker.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
prune_resources.go
resource_chain_babel_test.go github: Enable NPM tests on Windows 2021-02-01 11:32:17 +01:00
resource_chain_test.go deps: Update github.com/tdewolff/minify/v2 v2.6.2 => v2.9.13 2021-02-18 10:19:22 +01:00
robotstxt_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
rss_test.go
shortcode.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
shortcode_page.go
shortcode_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
site.go media: Make Type comparable 2021-03-14 15:21:54 +01:00
site_benchmark_new_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
site_output.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
site_output_test.go media: Make Type comparable 2021-03-14 15:21:54 +01:00
site_render.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
site_sections.go
site_sections_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
site_stats_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
site_test.go Rename a test 2021-03-04 13:46:31 +01:00
site_url_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
siteJSONEncode_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
sitemap_test.go tpl/embedded: Exclude pages without Permalink from sitemap 2021-02-06 18:30:09 +01:00
taxonomy.go
taxonomy_test.go all: Fix minor typos 2020-12-16 12:11:32 +01:00
template_test.go Expand template newline testcase to commands 2021-02-18 14:11:48 +01:00
testhelpers_test.go Add a debug helper 2021-03-03 20:16:58 +01:00
translations.go Introduce a tree map for all content 2020-02-18 09:49:42 +01:00