all repos — searchix @ 7077a3748fa545e8dee83d4f3464c55b4b459183

Search engine for NixOS, nix-darwin, home-manager and NUR users

feat: allow adding extra HTML to the body via configuration

Alan Pearce
commit

7077a3748fa545e8dee83d4f3464c55b4b459183

parent

fe79b4509dd580542fa28186673826df603677bb

1 file changed, 6 insertions(+), 4 deletions(-)

changed files
M internal/config/config.gointernal/config/config.go
@@ -1,6 +1,7 @@
package config import ( + "html/template" "log/slog" "maps" "net/url"
@@ -27,10 +28,11 @@ return nil
} type Config struct { - DataPath string `toml:"data-path"` - CSP CSP `toml:"content-security-policy"` - Headers map[string]string - Sources map[string]*importer.Source + DataPath string `toml:"data-path"` + CSP CSP `toml:"content-security-policy"` + ExtraBodyHTML template.HTML `toml:"extra-body-html"` + Headers map[string]string + Sources map[string]*importer.Source } var defaultConfig = Config{