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
}
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)