Skip to content

Commit 87258fe

Browse files
Merge pull request #97 from devweekends/fix/dsoc-metadata
fix: restore the share image on the DSOC pages
2 parents 0b16395 + 8ad6cf1 commit 87258fe

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

‎app/dsoc/layout.tsx‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
import type { Metadata } from "next"
22
import type { ReactNode } from "react"
33

4+
import { withSocial } from "@/lib/seo"
5+
46
// No canonical here on purpose: this layout wraps every /dsoc route, and a
57
// canonical set here would point all of them at the same address.
6-
export const metadata: Metadata = {
8+
export const metadata: Metadata = withSocial({
79
title: "DSOC: Dev Weekends Summer of Code",
810
description:
911
"Dev Weekends Summer of Code (DSOC) is a mentored open source program with a monthly stipend per milestone. 2026 applications are closed.",
1012
alternates: { canonical: "/dsoc" },
11-
openGraph: { url: "/dsoc" },
12-
}
13+
})
1314

1415
export default function DsocLayout({ children }: { children: ReactNode }) {
1516
return children

‎app/dsoc/projects/layout.tsx‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
import type { Metadata } from "next"
22
import type { ReactNode } from "react"
33

4-
export const metadata: Metadata = {
4+
import { withSocial } from "@/lib/seo"
5+
6+
// withSocial fills the share tags, including the share image, which a bare
7+
// openGraph object here would drop
8+
export const metadata: Metadata = withSocial({
59
title: { absolute: "DSOC projects | Dev Weekends" },
610
description:
711
"Open source projects in Dev Weekends Summer of Code: what each one builds, the skills it needs and the mentors who guide it.",
812
alternates: { canonical: "/dsoc/projects" },
9-
openGraph: { url: "/dsoc/projects" },
10-
}
13+
})
1114

1215
export default function DsocProjectsLayout({ children }: { children: ReactNode }) {
1316
return children

0 commit comments

Comments
 (0)