mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 12:14:49 +00:00
Use helpers.FilePathSeparator const
This commit is contained in:
1 parent
61a02c4df8
commit
beaf5db3ff
1 file changed
+1
-1
+1
-1
@@ -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:], string(filepath.Separator)) {
|
||||
if strings.Contains(createpath[1:], helpers.FilePathSeparator) {
|
||||
kind = helpers.GuessSection(createpath)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user