updated base component

Changed files
+3 -2
public
src
components
public/mainbanner.png

This is a binary file and will not be displayed.

+3 -2
src/components/Base.astro
··· 1 --- 2 interface Props { 3 title: string; 4 graph?: { 5 description: string; 6 url?: string; 7 type?: "website" | "article"; 8 - image?: string; 9 }; 10 } 11 12 const title = "::" + Astro.props.title; 13 const { graph } = Astro.props; 14 --- 15 ··· 28 <meta property="og:description" content={graph.description} /> 29 <meta property="og:url" content={graph.url} /> 30 <meta property="og:type" content={graph.type ?? "website"} /> 31 - <meta property="og:image" content={graph.image} /> 32 </Fragment> 33 ) 34 }
··· 1 --- 2 interface Props { 3 title: string; 4 + banner?: string; 5 graph?: { 6 description: string; 7 url?: string; 8 type?: "website" | "article"; 9 }; 10 } 11 12 const title = "::" + Astro.props.title; 13 + const { banner = "https://entomoviscera.online/mainbanner.png" } = Astro.props; 14 const { graph } = Astro.props; 15 --- 16 ··· 29 <meta property="og:description" content={graph.description} /> 30 <meta property="og:url" content={graph.url} /> 31 <meta property="og:type" content={graph.type ?? "website"} /> 32 + <meta property="og:image" content={banner} /> 33 </Fragment> 34 ) 35 }