From d196a3fe620a16d96a7a0bb9ad6eb929939d9570 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Tue, 12 Dec 2023 21:32:21 +0100 Subject: got sqlite working, though browser sees no table (hexdump shows difference in posts.db) --- search/fts5/hugo-0.120.1-charset.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 search/fts5/hugo-0.120.1-charset.patch 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) + } + } + } -- cgit v1.2.3-54-g00ecf