From: Bjørn Erik Pedersen Date: Wed, 27 Apr 2016 19:39:57 +0000 (+0200) Subject: commands: Sett mime type for CSS in Hugo server X-Git-Tag: v0.16~38 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2b02a402;p=brevno-suite%2Fhugo commands: Sett mime type for CSS in Hugo server Fixes #2104 --- diff --git a/commands/server.go b/commands/server.go index 345d2dec..3564890f 100644 --- a/commands/server.go +++ b/commands/server.go @@ -24,13 +24,14 @@ import ( "strings" "time" + "mime" + "github.com/spf13/afero" "github.com/spf13/cobra" "github.com/spf13/hugo/helpers" "github.com/spf13/hugo/hugofs" jww "github.com/spf13/jwalterweatherman" "github.com/spf13/viper" - "mime" ) var ( @@ -97,6 +98,8 @@ func init() { serverCmd.RunE = server mime.AddExtensionType(".json", "application/json; charset=utf8") + mime.AddExtensionType(".css", "text/css; charset=utf8") + } func server(cmd *cobra.Command, args []string) error {