hugolib: Fix bundle path when slug is set

Fixes #4870
This commit is contained in:
Bjørn Erik Pedersen
2019-05-31 09:40:58 +02:00
parent 8d898ad667
commit 3e6cb2cb77
4 changed files with 54 additions and 7 deletions

View File

@@ -549,6 +549,10 @@ func (s *sitesBuilder) AssertFileContentFn(filename string, f func(s string) boo
}
}
func (s *sitesBuilder) AssertHome(matches ...string) {
s.AssertFileContent("public/index.html", matches...)
}
func (s *sitesBuilder) AssertFileContent(filename string, matches ...string) {
content := s.FileContent(filename)
for _, match := range matches {