Skip to content

Commit dd8002d

Browse files
committed
fix(opengraph): update image filename in metadata
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
1 parent bd5a643 commit dd8002d

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

public/opengraph-image.png

199 KB
Loading

public/opengraph.jpg

-179 KB
Binary file not shown.

src/app/layout.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ const robotoMono = Roboto_Mono({
1010
subsets: ["latin"],
1111
});
1212

13+
const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || "https://pycon.ke";
14+
1315
export const metadata: Metadata = {
1416
title: "Welcome to PyCon Kenya 2025",
1517
description: "Africa's largest Python conference, held in Nairobi, Kenya.",
@@ -33,12 +35,12 @@ export const metadata: Metadata = {
3335
title: "Welcome to PyCon Kenya 2025",
3436
description:
3537
"Africa's largest Python conference, held in Nairobi, Kenya. Join us for a weekend of inspiring talks, informative workshops, and fun networking events.",
36-
url: process.env.NEXT_PUBLIC_BASE_URL || "https://pycon.ke",
38+
url: baseUrl,
3739
siteName: "PyConKE 2025",
3840
images: [
3941
{
40-
url: `${process.env.NEXT_PUBLIC_BASE_URL || "https://pycon.ke"}/opengraph.jpg`,
41-
secureUrl: `${process.env.NEXT_PUBLIC_BASE_URL || "https://pycon.ke"}/opengraph.jpg`,
42+
url: `${baseUrl}/opengraph-image.png`,
43+
secureUrl: `${baseUrl}/opengraph-image.png`,
4244
alt: "PyConKE 2025",
4345
type: "image/png",
4446
width: 1200,
@@ -53,8 +55,8 @@ export const metadata: Metadata = {
5355
"Africa's largest Python conference, held in Nairobi, Kenya. Join us for a weekend of inspiring talks, informative workshops, and fun networking events.",
5456
images: [
5557
{
56-
url: `${process.env.NEXT_PUBLIC_BASE_URL || "https://pycon.ke"}/opengraph.jpg`,
57-
secureUrl: `${process.env.NEXT_PUBLIC_BASE_URL || "https://pycon.ke"}/opengraph.jpg`,
58+
url: `${baseUrl}/opengraph-image.png`,
59+
secureUrl: `${baseUrl}/opengraph-image.png`,
5860
alt: "PyConKE 2025",
5961
type: "image/png",
6062
width: 1200,
@@ -69,7 +71,6 @@ export default function RootLayout({
6971
}: Readonly<{
7072
children: React.ReactNode;
7173
}>) {
72-
const baseUrl = process.env.NEXT_PUBLIC_BASE_URL;
7374
return (
7475
<html lang="en">
7576
<body className={`${robotoMono.className} antialiased`}>

src/app/opengraph-image.png

199 KB
Loading

0 commit comments

Comments
 (0)