diff --git a/hugolib/site_test.go b/hugolib/site_test.go
index f7e92cd30..f84ae5902 100644
--- a/hugolib/site_test.go
+++ b/hugolib/site_test.go
@@ -456,9 +456,9 @@ func doTestShouldAlwaysHaveUglyURLs(t *testing.T, uglyURLs bool) {
s.initializeSiteInfo()
templatePrep(s)
- must(s.addTemplate("index.html", "Home Sweet Home. IsHome={{ .IsHome }}"))
- must(s.addTemplate("_default/single.html", "{{.Content}} IsHome={{ .IsHome }}"))
- must(s.addTemplate("404.html", "Page Not Found. IsHome={{ .IsHome }}"))
+ must(s.addTemplate("index.html", "Home Sweet {{ if.IsHome }}Home{{ end }}."))
+ must(s.addTemplate("_default/single.html", "{{.Content}}{{ if.IsHome }}This is not home!{{ end }}"))
+ must(s.addTemplate("404.html", "Page Not Found.{{ if.IsHome }}This is not home!{{ end }}"))
// make sure the XML files also end up with ugly urls
must(s.addTemplate("rss.xml", "
some content
\n IsHome=false"}, - {filepath.FromSlash("404.html"), "Page Not Found. IsHome=false"}, + {filepath.FromSlash("index.html"), "Home Sweet Home."}, + {filepath.FromSlash(expectedPagePath), "\n\nsome content
\n"}, + {filepath.FromSlash("404.html"), "Page Not Found."}, {filepath.FromSlash("index.xml"), "\ndoc2 content
\n IsHome=false"}, + {filepath.FromSlash("ugly.html"), "\n\ndoc2 content
\n"}, } for _, p := range s.Pages {