hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 2b02a402a05b637ca9c0af4a86525d299c387daa
parent e4ee1b89ad21f46dab96c9099f554bef4602650b
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Wed, 27 Apr 2016 21:39:57 +0200

commands: Sett mime type for CSS in Hugo server

Fixes #2104

Diffstat:
Mcommands/server.go | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git 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 {