mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
hugolib: Add missing page kind to allKinds
This commit is contained in:
@@ -39,6 +39,12 @@ func TestDisableKindsSomeDisabled(t *testing.T) {
|
||||
func TestDisableKindsOneDisabled(t *testing.T) {
|
||||
t.Parallel()
|
||||
for _, kind := range allKinds {
|
||||
if kind == KindPage {
|
||||
// Turning off regular page generation have some side-effects
|
||||
// not handled by the assertions below (no sections), so
|
||||
// skip that for now.
|
||||
continue
|
||||
}
|
||||
doTestDisableKinds(t, kind)
|
||||
}
|
||||
}
|
||||
@@ -49,7 +55,6 @@ func TestDisableKindsAllDisabled(t *testing.T) {
|
||||
}
|
||||
|
||||
func doTestDisableKinds(t *testing.T, disabled ...string) {
|
||||
|
||||
siteConfigTemplate := `
|
||||
baseURL = "http://example.com/blog"
|
||||
enableRobotsTXT = true
|
||||
|
Reference in New Issue
Block a user