Skip to content

Commit e7b1e54

Browse files
committed
added conditional to npm install
1 parent 60638a9 commit e7b1e54

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

src/lib/components/home/hero.svelte

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,18 @@
6464
<ChevronRight class="size-4" />
6565
</Button>
6666

67-
<Button variant="outline" class="font-mono" onclick={copyNpmCommand}>
68-
{npmCommand}
69-
<span class="ml-2 rounded bg-gray-200 p-1 dark:bg-neutral-700">
70-
{#if isCopied}
71-
<Check class="size-4 text-green-500 transition-transform" />
72-
{:else}
73-
<Clipboard class="size-4 transition-transform hover:rotate-6" />
74-
{/if}
75-
</span>
76-
</Button>
67+
{#if siteConfig.npm !== ''}
68+
<Button variant="outline" class="font-mono" onclick={copyNpmCommand}>
69+
{npmCommand}
70+
<span class="ml-2 rounded bg-gray-200 p-1 dark:bg-neutral-700">
71+
{#if isCopied}
72+
<Check class="size-4 text-green-500 transition-transform" />
73+
{:else}
74+
<Clipboard class="size-4 transition-transform hover:rotate-6" />
75+
{/if}
76+
</span>
77+
</Button>
78+
{/if}
7779
</div>
7880

7981
<!-- Quick Links -->

src/lib/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const siteConfig: SiteConfig = {
1616
description:
1717
'Comprehensive documentation for your project. Built with Svelte 5, MDSvex, Tailwind CSS, and shadcn/ui components.',
1818
github: 'https://github.com/code-gio/svelte-firekit-docs',
19-
npm: 'svelte-firekit-docs',
19+
npm: '',
2020

2121
quickLinks: [
2222
{ title: 'Customize', href: '/docs/customize' },

0 commit comments

Comments
 (0)