Fix UglyUrls on Windows

Fixes #958
This commit is contained in:
bep 2015-03-07 15:41:01 +01:00
parent 602ceec06d
commit 91d16fbba0
2 changed files with 2 additions and 2 deletions

View file

@ -1197,7 +1197,7 @@ func (s *Site) RenderHomePage() error {
n := s.newHomeNode()
layouts := s.appendThemeTemplates([]string{"index.html", "_default/list.html", "_default/single.html"})
if err := s.renderAndWritePage("homepage", "/", n, layouts...); err != nil {
if err := s.renderAndWritePage("homepage", helpers.FilePathSeparator, n, layouts...); err != nil {
return err
}

View file

@ -367,7 +367,7 @@ func doTest404ShouldAlwaysHaveUglyUrls(t *testing.T, uglyUrls bool) {
for _, test := range tests {
file, err := hugofs.DestinationFS.Open(test.doc)
if err != nil {
t.Fatalf("Did not find %s in target.", test.doc)
t.Fatalf("Did not find %s in target: %s", test.doc, err)
}
content := helpers.ReaderToBytes(file)