a tool for shared writing and social publishing

add an og image

+14 -9
+14 -9
app/layout.tsx
··· 12 13 export const metadata = { 14 title: "Leaflet", 15 - description: "tiny interconnected social documents", 16 metadataBase: new URL(`https://leaflet.pub`), 17 appleWebApp: { 18 title: "Leaflet", 19 statusBarStyle: "black-translucent", ··· 48 variable: "--font-quattro", 49 }); 50 51 - export default async function RootLayout( 52 - { 53 - children, 54 - }: { 55 - children: React.ReactNode; 56 - } 57 - ) { 58 let headersList = await headers(); 59 let ipLocation = headersList.get("X-Vercel-IP-Country"); 60 let acceptLanguage = headersList.get("accept-language"); ··· 80 <InitialPageLoad> 81 <PopUpProvider> 82 <IdentityProviderServer> 83 - <RequestHeadersProvider country={ipLocation} language={acceptLanguage} timezone={ipTimezone}> 84 <ViewportSizeLayout>{children}</ViewportSizeLayout> 85 <RouteUIStateManager /> 86 </RequestHeadersProvider>
··· 12 13 export const metadata = { 14 title: "Leaflet", 15 + description: "Read and publish on the Atmosphere", 16 metadataBase: new URL(`https://leaflet.pub`), 17 + openGraph: { 18 + images: ["/open-graph.png"], 19 + }, 20 appleWebApp: { 21 title: "Leaflet", 22 statusBarStyle: "black-translucent", ··· 51 variable: "--font-quattro", 52 }); 53 54 + export default async function RootLayout({ 55 + children, 56 + }: { 57 + children: React.ReactNode; 58 + }) { 59 let headersList = await headers(); 60 let ipLocation = headersList.get("X-Vercel-IP-Country"); 61 let acceptLanguage = headersList.get("accept-language"); ··· 81 <InitialPageLoad> 82 <PopUpProvider> 83 <IdentityProviderServer> 84 + <RequestHeadersProvider 85 + country={ipLocation} 86 + language={acceptLanguage} 87 + timezone={ipTimezone} 88 + > 89 <ViewportSizeLayout>{children}</ViewportSizeLayout> 90 <RouteUIStateManager /> 91 </RequestHeadersProvider>
public/open-graph.png

This is a binary file and will not be displayed.