summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hugolib/page.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/page.go b/hugolib/page.go
index 7541257d0..ff00493b2 100644
--- a/hugolib/page.go
+++ b/hugolib/page.go
@@ -91,7 +91,7 @@ func initializePage(filename string) (page Page) {
}
func (p *Page) setSection() {
- x := strings.Split(p.FileName, "/")
+ x := strings.Split(p.FileName, string(os.PathSeparator))
if section := x[len(x)-2]; section != "content" {
p.Section = section