We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 016e560 commit f30bb1bCopy full SHA for f30bb1b
apps/svelte.dev/src/routes/packages/PackageCard.svelte
@@ -19,7 +19,11 @@
19
minute: 'numeric'
20
});
21
22
- const href = $derived(pkg.homepage || pkg.repo_url || `https://npmjs.org/package/${pkg.name}`);
+ const href = $derived(
23
+ pkg.homepage?.replace('https://svelte.dev', '') ||
24
+ pkg.repo_url ||
25
+ `https://npmjs.org/package/${pkg.name}`
26
+ );
27
</script>
28
29
<article>
0 commit comments