shithub: hugo

Download patch

ref: 61a02c4df8aeff4d236e2e5f206aeef06b794982
parent: 15463d3d4584675d1d8c9a25c8259adce163c4ea
author: Nuno Antunes <[email protected]>
date: Sat Mar 28 12:22:34 EDT 2015

Fix section name guessing on Windows

--- a/commands/new.go
+++ b/commands/new.go
@@ -93,7 +93,7 @@
 	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)
 	}