hugo

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

git clone git://git.shimmy1996.com/hugo.git
commit 61a02c4df8aeff4d236e2e5f206aeef06b794982
parent 15463d3d4584675d1d8c9a25c8259adce163c4ea
Author: Nuno Antunes <nunontns@gmail.com>
Date:   Sat, 28 Mar 2015 16:22:34 +0000

Fix section name guessing on Windows

Diffstat:
Mcommands/new.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commands/new.go b/commands/new.go
@@ -93,7 +93,7 @@ func NewContent(cmd *cobra.Command, args []string) {
 	var kind string
 
 	// assume the first directory is the section (kind)
-	if strings.Contains(createpath[1:], "/") {
+	if strings.Contains(createpath[1:], string(filepath.Separator)) {
 		kind = helpers.GuessSection(createpath)
 	}