Skip to content

Commit 07a192c

Browse files
fix: remove duplicate og:image meta tag on package pages (npmx-dev#2693)
1 parent 49eb15f commit 07a192c

3 files changed

Lines changed: 3 additions & 27 deletions

File tree

app/pages/package-code/[[org]]/[packageName]/v/[version]/[...filePath].vue

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -324,15 +324,7 @@ defineOgImage(
324324
version: () => version.value,
325325
variant: 'code-tree',
326326
},
327-
[
328-
{ key: 'og', alt: () => `Source code file tree for ${packageName.value}@${version.value}` },
329-
{
330-
key: 'whatsapp',
331-
width: 800,
332-
height: 800,
333-
alt: () => `Source code file tree for ${packageName.value}@${version.value}`,
334-
},
335-
],
327+
{ alt: () => `Source code file tree for ${packageName.value}@${version.value}` },
336328
)
337329
338330
useCommandPaletteContextCommands(

app/pages/package-docs/[...path].vue

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,7 @@ defineOgImage(
149149
version: () => resolvedVersion.value,
150150
variant: 'function-tree',
151151
},
152-
[
153-
{ key: 'og', alt: () => `API documentation for ${packageName.value}` },
154-
{
155-
key: 'whatsapp',
156-
width: 800,
157-
height: 800,
158-
alt: () => `API documentation for ${packageName.value}`,
159-
},
160-
],
152+
{ alt: () => `API documentation for ${packageName.value}` },
161153
)
162154
163155
const showLoading = computed(

app/pages/package/[[org]]/[name].vue

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,7 @@ defineOgImage(
4242
version: () => requestedVersion.value,
4343
variant: 'download-chart',
4444
},
45-
[
46-
{ key: 'og', alt: () => `npm package ${packageName.value} download chart and stats` },
47-
{
48-
key: 'whatsapp',
49-
width: 800,
50-
height: 800,
51-
alt: () => `npm package ${packageName.value} download chart and stats`,
52-
},
53-
],
45+
{ alt: () => `npm package ${packageName.value} download chart and stats` },
5446
)
5547
5648
if (import.meta.server) {

0 commit comments

Comments
 (0)