feat: separate slug pages from tools

This commit is contained in:
2026-09-27 16:10:28 +05:00
parent 931ee27b05
commit 7a3498c173
35 changed files with 1436 additions and 993 deletions
+3 -3
View File
@@ -6,15 +6,15 @@
interface Props {
title: string;
id: string;
slug: string;
description?: string;
index?: number;
icon?: Component<{ size?: number; class?: string }>;
}
let { title, id, description, index, icon }: Props = $props();
let { title, slug, description, index, icon }: Props = $props();
</script>
<a class="tool-card" href={resolve("/tools/[id]", { id })}>
<a class="tool-card" href={resolve("/tools/[id]", { id: slug })}>
{#if icon}<span class="tool-icon"><Icon {icon} size={19} /></span>{/if}
<span class="tool-copy">
<strong>{title}</strong>