diff options
Diffstat (limited to 'search/fts5/hugo-0.120.1-charset.patch')
-rw-r--r-- | search/fts5/hugo-0.120.1-charset.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/search/fts5/hugo-0.120.1-charset.patch b/search/fts5/hugo-0.120.1-charset.patch new file mode 100644 index 0000000..f22c1a3 --- /dev/null +++ b/search/fts5/hugo-0.120.1-charset.patch @@ -0,0 +1,12 @@ +diff -rauN hugo-0.120.1/hugolib/site.go hugo-0.120.1-charset-patch/hugolib/site.go +--- hugo-0.120.1/hugolib/site.go 2023-10-30 17:44:31.000000000 +0100 ++++ hugo-0.120.1-charset-patch/hugolib/site.go 2023-12-12 18:12:53.960153106 +0100 +@@ -400,7 +400,7 @@ + func (s *Site) RegisterMediaTypes() { + for _, mt := range s.conf.MediaTypes.Config { + for _, suffix := range mt.Suffixes() { +- _ = mime.AddExtensionType(mt.Delimiter+suffix, mt.Type+"; charset=utf-8") ++ _ = mime.AddExtensionType(mt.Delimiter+suffix, mt.Type) + } + } + } |