My page content.
`
-
}
var categoryKey string
},
func(s *sitesBuilder) {
s.AssertFileContent("public/page3/index.html", "/page3/|Permalink: https://example.com/page3/")
- s.AssertFileContent("public/tags/ta3/index.html", "|ta3|")
+ s.AssertFileContent("public/tags/ta3/index.html", "a3")
},
},
{
return sb
},
func(s *sitesBuilder) {
-
},
},
{
`)
sb.WithTemplates("_default/single.html", pageTemplateTemplate)
+ sb.WithTemplates("_default/list.html", "List")
r := rand.New(rand.NewSource(99))
return sb
},
func(s *sitesBuilder) {
- s.AssertFileContent("public/section/bundle8/index.html", ` <li><a href="https://example.com/categories/category1/">category1</a></li>`)
+ s.AssertFileContent("public/section/bundle8/index.html", `<a href="https://example.com/categories/category1/">`)
s.Assert(len(s.H.Sites), qt.Equals, 1)
s.Assert(len(s.H.Sites[0].RegularPages()), qt.Equals, 35)
},