mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-21 18:31:37 +00:00
Fix section name guessing on Windows
This commit is contained in:
parent
15463d3d45
commit
61a02c4df8
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ func NewContent(cmd *cobra.Command, args []string) {
|
||||||
var kind string
|
var kind string
|
||||||
|
|
||||||
// assume the first directory is the section (kind)
|
// 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)
|
kind = helpers.GuessSection(createpath)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue