shithub: hugo

Download patch

ref: 2b02a402a05b637ca9c0af4a86525d299c387daa
parent: e4ee1b89ad21f46dab96c9099f554bef4602650b
author: Bjørn Erik Pedersen <[email protected]>
date: Wed Apr 27 17:39:57 EDT 2016

commands: Sett mime type for CSS in Hugo server

Fixes #2104

--- a/commands/server.go
+++ b/commands/server.go
@@ -24,6 +24,8 @@
 	"strings"
 	"time"
 
+	"mime"
+
 	"github.com/spf13/afero"
 	"github.com/spf13/cobra"
 	"github.com/spf13/hugo/helpers"
@@ -30,7 +32,6 @@
 	"github.com/spf13/hugo/hugofs"
 	jww "github.com/spf13/jwalterweatherman"
 	"github.com/spf13/viper"
-	"mime"
 )
 
 var (
@@ -97,6 +98,8 @@
 	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 {