diff --git a/src/routes/directory/[slug]/+page.svelte b/src/routes/directory/[slug]/+page.svelte
index bc75d0e..8a5f495 100644
--- a/src/routes/directory/[slug]/+page.svelte
+++ b/src/routes/directory/[slug]/+page.svelte
@@ -3,6 +3,7 @@
import type { iSVG } from '@/types/svg';
export let data: PageData;
let svgsByCategory = data.props?.svgs || [];
+ let category = data.props?.category || '';
// Components:
import Container from '@/components/container.svelte';
@@ -32,7 +33,7 @@
{#each filteredSvgs as svg}
diff --git a/src/routes/directory/[slug]/+page.ts b/src/routes/directory/[slug]/+page.ts
index 4b6ad6b..1d44557 100644
--- a/src/routes/directory/[slug]/+page.ts
+++ b/src/routes/directory/[slug]/+page.ts
@@ -17,6 +17,7 @@ export const load = (async ({ params }) => {
return {
props: {
+ category: slug,
svgs: svgsByCategory
}
};