1
0
Fork 0
mirror of https://github.com/gohugoio/hugo.git synced 2025-03-24 03:53:41 +00:00
hugo/tpl/tplimpl
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 
Fixes 
2021-03-14 15:21:54 +01:00
..
embedded Add support for Google Analytics v4 2021-03-03 13:30:06 +01:00
shortcodes.go media: Make Type comparable 2021-03-14 15:21:54 +01:00
shortcodes_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
template.go tpl: Fix race condition in text template baseof 2021-01-22 19:25:45 +01:00
template_ast_transformers.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
template_ast_transformers_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
template_errors.go
template_funcs.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
template_funcs_test.go Add Dart Sass support 2020-12-30 17:32:25 +01:00
template_info_test.go Add Dart Sass support 2020-12-30 17:32:25 +01:00
template_test.go Fix base template handling with preceding comments 2020-01-30 23:44:42 +01:00
templateFuncster.go
templateProvider.go