diff --git a/src/pages/kind/[...kindPath].astro b/src/pages/kind/[...kindPath].astro index 196a542..80e085e 100644 --- a/src/pages/kind/[...kindPath].astro +++ b/src/pages/kind/[...kindPath].astro @@ -44,15 +44,24 @@ const kindPage = { }) ) } +let pageLabel = 'Mac Apps' +const baseFilters = [] + const categorySlug = getKindToCategorySlug( pathSlug ) -const category = categories[ categorySlug ] +// If we have a category slug, add a filter +if ( !!categorySlug ) { + const category = categories[ categorySlug ] -const baseFilters = [ - makeCategoryFilterFromCategorySlug( categorySlug ), -] + console.log( 'pathSlug', pathSlug ) + console.log( 'category', category ) -const pageLabel = category?.pluralLabel || category.label + const baseFilters = [ + makeCategoryFilterFromCategorySlug( categorySlug ), + ] + + pageLabel = category?.pluralLabel || category.label +} ---