node to page: Fix home target path on Windows
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 8 Nov 2016 23:19:37 +0000 (00:19 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 22 Nov 2016 08:57:03 +0000 (09:57 +0100)
Updates #2297

hugolib/page.go

index 8ebaeff05cc6908b632656ccdca5c320261e5ff1..fb2944bffc7d9a714f61d6cfb684fe495375763a 100644 (file)
@@ -1202,7 +1202,7 @@ func (p *Page) TargetPath() (outfile string) {
        // TODO(bep) np
        switch p.NodeType {
        case NodeHome:
-               return p.addLangFilepathPrefix("/")
+               return p.addLangFilepathPrefix(helpers.FilePathSeparator)
        case NodeSection:
                return p.addLangFilepathPrefix(p.sections[0])
        case NodeTaxonomy: