hugo/tpl
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
..
cast
collections
compare
crypto
data
debug
encoding
fmt
hugo
images
inflect
internal
js
lang
math
openapi/openapi3
os
partials
path
reflect
resources
safe
site
strings tpl: Add method mappings for strings.Contains, strings.ContainsAny 2021-02-23 09:36:43 +01:00
templates
time
tplimpl media: Make Type comparable 2021-03-14 15:21:54 +01:00
transform
urls
template.go
template_info.go
template_test.go