From b50be1b27a94d08acab7a2ea5b52b70d94d0d9ce Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Sun, 5 Jun 2022 11:49:28 -0500 Subject: [PATCH] Set base filters for kind template --- src/pages/kind/[...kindPath].astro | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/pages/kind/[...kindPath].astro b/src/pages/kind/[...kindPath].astro index 7fdd915..989c67c 100644 --- a/src/pages/kind/[...kindPath].astro +++ b/src/pages/kind/[...kindPath].astro @@ -6,7 +6,11 @@ import { DoesItAPI } from '~/helpers/api/client.js' import { getPathPartsFromAstroRequest } from '~/helpers/url.js' import { catchRedirectResponse } from '~/helpers/astro/request.js' -import { categories, getKindToCategorySlug } from '~/helpers/categories.js' +import { + categories, + getKindToCategorySlug, + makeCategoryFilterFromCategorySlug +} from '~/helpers/categories.js' import Layout from '../../layouts/default.astro' import Search from '~/components/search-stork.vue' @@ -35,6 +39,10 @@ const categorySlug = getKindToCategorySlug( pathSlug ) const category = categories[ categorySlug ] +const baseFilters = [ + makeCategoryFilterFromCategorySlug( categorySlug ), +] + const pageLabel = category?.pluralLabel || category.label --- @@ -69,6 +77,7 @@ const pageLabel = category?.pluralLabel || category.label