Skip to content

Commit 08828b8

Browse files
committed
adding ogImage to package changes page
1 parent a67f039 commit 08828b8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ const { data: changelog, pending } = usePackageChangelog(packageName, version)
6868
6969
const repoProviderIcon = useProviderIcon(() => changelog.value?.provider)
7070
const tptoc = useTemplateRef('tptoc')
71+
72+
defineOgImageComponent('Default', {
73+
title: () => `${pkg.value?.name ?? 'Package'} - Changelogs`,
74+
description: () => pkg.value?.license ?? '',
75+
primaryColor: '#60a5fa',
76+
})
7177
</script>
7278
<template>
7379
<main class="flex-1 flex flex-col">

0 commit comments

Comments
 (0)