Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ export async function generateMetadata({ params }: PageProps): Promise<Metadata>
return {
title,
description: listing.description,
alternates: { canonical: `/marketplace/${listing.key}` },
alternates: { canonical: `/extensions/${listing.key}` },
openGraph: {
type: 'article',
title,
description: listing.description,
url: `/marketplace/${listing.key}`,
url: `/extensions/${listing.key}`,
images: ogImage('/og', title),
},
}
Expand Down Expand Up @@ -74,7 +74,7 @@ function MetaRow({ label, children }: { label: string; children: React.ReactNode
)
}

export default async function MarketplaceListingPage({ params }: PageProps) {
export default async function ExtensionListingPage({ params }: PageProps) {
const { key } = await params
const listing = await findListing(key)
if (!listing) notFound()
Expand All @@ -88,7 +88,7 @@ export default async function MarketplaceListingPage({ params }: PageProps) {
current={listing.name}
trail={[
{ label: site.name, href: '/' },
{ label: 'Extensions', href: '/marketplace' },
{ label: 'Extensions', href: '/extensions' },
]}
/>
<header className="marketing-hero-copy">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ const DESCRIPTION =
export const metadata: Metadata = {
title: 'Extensions',
description: DESCRIPTION,
alternates: { canonical: '/marketplace' },
alternates: { canonical: '/extensions' },
openGraph: {
type: 'website',
siteName: site.name,
title: `${site.name} extensions`,
description: DESCRIPTION,
url: '/marketplace',
url: '/extensions',
images: ogImage('/og', `${site.name} extensions`),
},
}
Expand Down Expand Up @@ -85,7 +85,7 @@ function ListingCard({ listing }: { listing: Listing }) {
)
}

export default async function MarketplaceIndexPage() {
export default async function ExtensionsIndexPage() {
const grouped = await Promise.all(
sections.map(async (section) => ({ section, listings: await listingsOfKind(section.kind) })),
)
Expand Down Expand Up @@ -147,14 +147,14 @@ export default async function MarketplaceIndexPage() {
<p>Create a theme or plugin with typed, documented extension points.</p>
</div>
<div className="marketing-actions">
<Link className="btn" href={docHref('themes')}>
Build a theme <span aria-hidden>→</span>
<Link className="edition-text-link" href={docHref('themes')}>
Build a theme <span aria-hidden>↗</span>
</Link>
<Link className="textlink" href={docHref('first-plugin')}>
Write a plugin
<Link className="edition-text-link" href={docHref('first-plugin')}>
Write a plugin <span aria-hidden>↗</span>
</Link>
<Link className="textlink" href={docHref('marketplace')}>
How to install
<Link className="edition-text-link" href={docHref('marketplace')}>
How to install <span aria-hidden>↗</span>
</Link>
</div>
</section>
Expand Down
Loading
Loading