diff --git a/docs/vercel/src/Index.svelte b/docs/vercel/src/Index.svelte index e95cb0458..0d10fef3a 100644 --- a/docs/vercel/src/Index.svelte +++ b/docs/vercel/src/Index.svelte @@ -62,13 +62,14 @@ href="https://github.com/o2sh/onefetch">github.com/o2sh/onefetch

Languages ({languages.length})

- {#each languages as language} + {#each languages as language, index} + chip={language.chip} + {index} /> {/each} diff --git a/docs/vercel/src/lib/AsciiPreview.svelte b/docs/vercel/src/lib/AsciiPreview.svelte index a477bdd39..4f2f3a8b9 100644 --- a/docs/vercel/src/lib/AsciiPreview.svelte +++ b/docs/vercel/src/lib/AsciiPreview.svelte @@ -3,6 +3,7 @@ import TitleLink from './TitleLink.svelte'; export let name: string; + export let index: number; export let ansi: string[]; export let hex: string[] | null = null; export let chip: string; @@ -36,7 +37,7 @@
- +
diff --git a/docs/vercel/src/lib/TitleLink.svelte b/docs/vercel/src/lib/TitleLink.svelte index 5ca939ecf..f6f2597f9 100644 --- a/docs/vercel/src/lib/TitleLink.svelte +++ b/docs/vercel/src/lib/TitleLink.svelte @@ -1,8 +1,11 @@ -

{name}

+

+ {name} +