diff --git a/config.go b/config.go index 59359f8..315db5a 100644 --- a/config.go +++ b/config.go @@ -1,6 +1,7 @@ package main import ( + "mime" "os" "strings" "text/template" @@ -42,6 +43,10 @@ func (c *Config) Load(path string) error { } case "feeds": c.Feeds[key] = value + case "mediatypes": + for _, field := range strings.Fields(value) { + mime.AddExtensionType(key, field) + } } }) }