From: Bjørn Erik Pedersen Date: Tue, 8 Nov 2016 23:19:37 +0000 (+0100) Subject: node to page: Fix home target path on Windows X-Git-Tag: v0.18~109 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=80e453f11499f9f35f8431ecb22c0094b42a55f7;p=brevno-suite%2Fhugo node to page: Fix home target path on Windows Updates #2297 --- diff --git a/hugolib/page.go b/hugolib/page.go index 8ebaeff0..fb2944bf 100644 --- a/hugolib/page.go +++ b/hugolib/page.go @@ -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: