feat(website): metadata + case insensitivity

This commit is contained in:
LukaDev 2024-10-14 13:49:57 +02:00
parent b49c3844f9
commit d11bdc773c
2 changed files with 14 additions and 2 deletions

View file

@ -32,8 +32,8 @@
? undefined
: (dependencyInfo.target ?? $page.params.target ?? data.pkg.targets[0].kind)}
{@const isOfficialRegistry = isWally
? dependencyInfo.index === "https://github.com/UpliftGames/wally-index"
: dependencyInfo.index === "https://github.com/daimond113/pesde-index"}
? dependencyInfo.index.toLowerCase() === "https://github.com/upliftgames/wally-index"
: dependencyInfo.index.toLowerCase() === "https://github.com/daimond113/pesde-index"}
<article
class={`bg-card relative overflow-hidden rounded px-5 py-4 transition ${

View file

@ -0,0 +1,12 @@
import type { PageLoad } from "./$types"
export const load: PageLoad = async ({ parent }) => {
const data = await parent()
return {
meta: {
title: `${data.pkg.name} - ${data.pkg.version} - dependencies`,
description: data.pkg.description,
},
}
}